/* CodeLaksh - Modern Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0483d2;
  --primary-dark: #026a9e;
  --secondary: #ff6b35;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --light: #ffffff;
  --bg-dark: #0f0f1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg-dark); color: var(--light); overflow-x: hidden; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: all 0.3s; background: transparent; }
.header.scrolled { background: rgba(15,15,26,0.95); backdrop-filter: blur(10px); padding: 15px 0; }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--light); }
.logo i { font-size: 28px; color: var(--primary); }
.logo span { font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 700; }
.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-menu a { color: var(--light); text-decoration: none; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-menu a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
.nav-menu a:hover::after { width: 100%; }
.hamburger { display: none; cursor: pointer; font-size: 24px; }

.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; animation: float 8s infinite; }
.shape-2 { width: 300px; height: 300px; background: var(--secondary); bottom: -50px; left: -50px; animation: float 6s infinite reverse; }
.shape-3 { width: 200px; height: 200px; background: #9b59b6; top: 50%; left: 50%; animation: float 10s infinite; }
@keyframes float { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,30px)} }
.hero .container { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.hero-content { max-width: 600px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(4,131,210,0.2); padding: 10px 20px; border-radius: 30px; margin-bottom: 20px; border: 1px solid var(--primary); }
.badge-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.hero-title { font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-title span { display: block; }
.hero-title .highlight { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.1rem; color: #aaa; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; margin-bottom: 40px; }
.btn { padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s; display: inline-flex; align-items: center; gap: 10px; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--light); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(4,131,210,0.3); }
.btn-outline { border: 2px solid var(--primary); color: var(--light); background: transparent; }
.btn-outline:hover { background: var(--primary); }
.hero-stats { display: flex; gap: 40px; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.9rem; color: #888; }

.hero-visual { position: relative; width: 400px; height: 400px; }
.hero-card { position: absolute; background: linear-gradient(145deg, #1e1e30, #252540); backdrop-filter: blur(10px); border: 1px solid rgba(4,131,210,0.3); border-radius: 20px; padding: 20px; transition: all 0.3s; }
.hero-card:hover { transform: translateY(-10px); border-color: #0483d2; box-shadow: 0 15px 30px rgba(4,131,210,0.3); }
.card-main { top: 50%; left: 50%; transform: translate(-50%,-50%); width: 200px; height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); border: none; }
.card-main i { font-size: 50px; margin-bottom: 15px; color: #0483d2; }
.card-main h3 { font-size: 1.3rem; color: white; }
.card-main p { font-size: 0.8rem; color: #aaa; }
.card-1 { top: 10%; right: 10%; animation: float 5s infinite; }
.card-2 { bottom: 5%; right: 20%; animation: float 7s infinite 1s; background: linear-gradient(145deg, #1e1e30, #252540); border: 1px solid rgba(4,131,210,0.3); }
.card-3 { bottom: 10%; left: 10%; animation: float 6s infinite 0.5s; }
.hero-card i { font-size: 30px; color: #0483d2; }
.hero-card span { display: block; margin-top: 8px; font-size: 0.9rem; color: #fff; font-weight: 600; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-subtitle { display: inline-block; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }
.section-title { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 700; }
.highlight { color: var(--primary); }

.about { padding: 100px 0; background: var(--dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content p { color: #aaa; line-height: 1.8; margin-bottom: 30px; }
.about-features { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 15px; }
.feature-icon { width: 50px; height: 50px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.feature-icon i { font-size: 20px; }
.feature-item h4 { font-size: 1rem; margin-bottom: 5px; }
.feature-item p { font-size: 0.85rem; color: #888; }
.about-image { position: relative; }
.image-frame { width: 300px; height: 300px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.image-frame i { font-size: 80px; opacity: 0.5; }
.image-badge { position: absolute; bottom: 20px; right: 20px; background: var(--secondary); padding: 10px 20px; border-radius: 20px; font-weight: 600; }

.services { padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: linear-gradient(145deg, #1e1e30, #252540); border: 1px solid rgba(4,131,210,0.2); border-radius: 20px; padding: 35px; transition: all 0.3s; }
.service-card:hover { transform: translateY(-10px); border-color: #0483d2; box-shadow: 0 20px 40px rgba(4,131,210,0.2); }
.service-icon { width: 70px; height: 70px; background: linear-gradient(135deg, #0483d2, #8e44ad); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; }
.service-icon i { font-size: 30px; color: white; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: #fff; }
.service-card p { color: #ccc; font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.service-link { color: var(--primary); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.service-link:hover { gap: 12px; }

.portfolio { padding: 100px 0; background: var(--dark); }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.portfolio-item { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; }
.portfolio-image { height: 250px; background: linear-gradient(135deg, var(--primary-dark), var(--darker)); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.portfolio-image i { font-size: 50px; opacity: 0.5; }
.portfolio-item:hover .portfolio-image { background: var(--primary); }
.portfolio-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.portfolio-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.portfolio-info p { color: var(--primary); font-size: 0.85rem; }

.contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-item { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-icon { width: 60px; height: 60px; background: var(--primary); border-radius: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon i { font-size: 24px; }
.contact-item h4 { font-size: 1.1rem; margin-bottom: 5px; }
.contact-item p { color: #aaa; font-size: 0.9rem; }
.social-links { display: flex; gap: 15px; margin-top: 30px; }
.social-links a { width: 45px; height: 45px; background: rgba(255,255,255,0.05); border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; color: var(--light); text-decoration: none; }
.social-links a:hover { background: var(--primary); transform: translateY(-5px); }
.social-links i { font-size: 20px; }
.contact-form { background: var(--dark); padding: 40px; border-radius: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 15px 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: var(--light); font-size: 1rem; margin-bottom: 20px; font-family: inherit; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { resize: none; }
.contact-form select { cursor: pointer; }
.contact-form .btn { width: 100%; justify-content: center; }

.footer { background: var(--darker); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: #888; margin-top: 15px; line-height: 1.7; }
.footer-links h4 { margin-bottom: 20px; }
.footer-links a { display: block; color: #888; text-decoration: none; margin-bottom: 12px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-links p { color: #888; margin-bottom: 12px; font-size: 0.9rem; }
.footer-links i { margin-right: 8px; color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: #666; font-size: 0.9rem; }

.chatbot-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.chatbot-toggle { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border: none; border-radius: 50%; color: white; font-size: 24px; cursor: pointer; box-shadow: 0 10px 30px rgba(4,131,210,0.4); transition: all 0.3s; }
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-popup { position: absolute; bottom: 80px; right: 0; width: 350px; background: var(--dark); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); display: none; }
.chatbot-popup.active { display: block; }
.popup-header { background: linear-gradient(135deg, #1a1a2e, #16213e); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.header-left { display: flex; align-items: center; gap: 12px; }
.ai-avatar { width: 42px; height: 42px; background: linear-gradient(135deg, #0483d2, #8e44ad); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.ai-avatar i { font-size: 20px; color: white; }
.header-text { display: flex; flex-direction: column; }
.ai-name { font-weight: 700; font-size: 1rem; color: white; }
.ai-status { font-size: 0.75rem; color: #4ade80; display: flex; align-items: center; gap: 5px; }
.status-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
.popup-header button { background: none; border: none; color: #888; cursor: pointer; font-size: 18px; padding: 5px; }
.popup-header button:hover { color: white; }

.welcome-message { text-align: center; padding: 30px 20px; }
.welcome-message i { font-size: 50px; background: linear-gradient(135deg, #0483d2, #8e44ad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 15px; display: block; }
.welcome-message h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; color: white; }
.welcome-message p { color: #888; font-size: 0.9rem; }

.option-cards { display: flex; flex-direction: column; gap: 12px; padding: 0 15px 15px; }
.option-card { display: flex; align-items: center; gap: 15px; padding: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; cursor: pointer; transition: all 0.3s ease; }
.option-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(4,131,210,0.3); transform: translateX(5px); }
.card-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#voiceBtn .card-icon { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
#chatBtn .card-icon { background: linear-gradient(135deg, #0483d2, #05a3f5); }
.card-icon i { font-size: 22px; color: white; }
.card-content { flex: 1; }
.card-content h4 { font-size: 1rem; font-weight: 600; color: white; margin-bottom: 4px; }
.card-content p { font-size: 0.8rem; color: #888; margin: 0; }
.card-arrow { color: #555; font-size: 14px; }

.popup-messages { height: 320px; padding: 0; overflow-y: auto; background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%); }
.popup-messages.has-messages { padding: 15px; }
.popup-messages.has-messages .welcome-message,
.popup-messages.has-messages .option-cards { display: none; }

.message { padding: 12px 16px; border-radius: 18px; margin-bottom: 10px; max-width: 85%; word-wrap: break-word; font-size: 0.9rem; line-height: 1.5; clear: both; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.message.bot { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); float: left; color: #e0e0e0; border-bottom-left-radius: 4px; }
.message.user { background: linear-gradient(135deg, #0483d2, #05a3f5); float: right; color: white; border-bottom-right-radius: 4px; box-shadow: 0 4px 15px rgba(4,131,210,0.3); }
.popup-header button { background: none; border: none; color: white; cursor: pointer; font-size: 18px; }
.popup-messages { height: 250px; padding: 15px; overflow-y: auto; }
.message { padding: 12px 18px; border-radius: 20px; margin-bottom: 12px; max-width: 85%; word-wrap: break-word; font-size: 0.95rem; line-height: 1.5; }
.message.bot { background: linear-gradient(135deg, rgba(4,131,210,0.15), rgba(4,131,210,0.05)); border: 1px solid rgba(4,131,210,0.3); float: left; clear: both; color: #fff; }
.message.user { background: linear-gradient(135deg, #0483d2, #05a3f5); float: right; clear: both; color: white; box-shadow: 0 5px 20px rgba(4,131,210,0.3); }
.popup-input { padding: 15px; display: flex; gap: 10px; background: #1a1a2e; border-top: 1px solid rgba(255,255,255,0.05); }
.popup-input input { flex: 1; padding: 14px 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 25px; color: white; font-size: 0.9rem; }
.popup-input input::placeholder { color: #666; }
.popup-input input:focus { outline: none; border-color: #0483d2; background: rgba(4,131,210,0.1); }
.popup-input button { width: 48px; height: 48px; background: linear-gradient(135deg, #0483d2, #05a3f5); border: none; border-radius: 50%; color: white; cursor: pointer; transition: all 0.3s; }
.popup-input button:hover { transform: scale(1.1); box-shadow: 0 5px 20px rgba(4,131,210,0.4); }

@media (max-width:1024px){ .hero-visual{display:none} .hero-title{font-size:2.5rem} .services-grid{grid-template-columns:repeat(2,1fr)} .portfolio-grid{grid-template-columns:repeat(2,1fr)} .footer-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:768px){ .hamburger{display:block} .nav-menu{display:none;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:var(--dark);padding:20px} .nav-menu.active{display:flex} .hero-title{font-size:2rem} .hero-stats{flex-wrap:wrap;gap:20px} .about-grid,.contact-grid{grid-template-columns:1fr} .services-grid,.portfolio-grid,.form-row,.footer-grid{grid-template-columns:1fr} .chatbot-popup{width:300px;right:-20px} }
::-webkit-scrollbar{width:8px} ::-webkit-scrollbar-track{background:var(--bg-dark)} ::-webkit-scrollbar-thumb{background:var(--primary);border-radius:4px} ::-webkit-scrollbar-thumb:hover{background:var(--primary-dark)}
/* Chat Options */
.chat-options {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.option-btn {
  flex: 1;
  min-width: 140px;
  padding: 18px 25px;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.option-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.option-btn:hover::before {
  left: 100%;
}
.voice-btn {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  color: white;
  box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4);
}
.voice-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(142, 68, 173, 0.6);
}
.chat-btn {
  background: linear-gradient(135deg, #0483d2, #05a3f5);
  color: white;
  box-shadow: 0 8px 25px rgba(4, 131, 210, 0.4);
}
.chat-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(4, 131, 210, 0.6);
}
.option-btn i {
  font-size: 1.3rem;
}
.option-btn .pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  margin-left: 8px;
  animation: pulse-ring 1.5s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
