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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050816;
  color: #f5f5f5;
  line-height: 1.6;
}

/* Layout helpers */
.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background: #0b1020;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

/* Hero */
.hero {
  padding: 4.5rem 1.5rem 3.5rem;
  background: radial-gradient(circle at top left, #1f4fd3, #050816 55%);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.hero-text {
  flex: 1 1 320px;
}

.name {
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: #c0e0ff;
  margin-bottom: 0.75rem;
}
.subtitle {
    line-height: 1.8;
}

.tagline {
  font-size: 0.95rem;
  color: #d0d4ff;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn.primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn.primary:hover {
  background: #1d4ed8;
}

.btn.secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: #4b5563;
}

.btn.secondary:hover {
  background: #111827;
}

.hero-links {
  font-size: 0.9rem;
  color: #9ca3af;
}

.hero-links a {
  color: #c7d2fe;
  text-decoration: none;
}

.hero-links a:hover {
  text-decoration: underline;
}

.hero-photo {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #2563eb;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

/* Projects & cards */
.grid {
  display: grid;
  gap: 1.5rem;
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #050816;
  border-radius: 1rem;
  border: 1px solid #1f2937;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
  overflow: hidden;
}

.project-card {
  background: #050816;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1.2rem 1.3rem 1.3rem;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #e5e7eb;
}

.card-body p,
.card-body ul {
  font-size: 0.9rem;
  color: #9ca3af;
}

.card-body ul {
  list-style: disc;
  padding-left: 1.1rem;
}

/* Contact form */
.contact-form {
  margin-top: 1.5rem;
  max-width: 520px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.form-row input,
.form-row textarea {
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #374151;
  background: #020617;
  color: #f9fafb;
  font-size: 0.9rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

/* Footer */
.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  border-top: 1px solid #1f2937;
  background: #020617;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .hero-photo {
    justify-content: flex-start;
  }

  .name {
    font-size: 2.1rem;
  }
}
/* NAVIGATION BAR */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 50, 0.4); /* transparent navy */
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-name {
  color: white;
  font-size: 22px;
  font-weight: 700;
}

.nav-right a {
  margin-left: 25px;
  font-size: 17px;
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.nav-right a:hover {
  color: #00ff99; /* green hover */
  text-shadow: 0 0 8px #00ff99;
}
.nav-right a:hover {
  color: red;
  text-shadow: 0 0 8px red;
}
.nav-right a {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-right a:hover {
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000;
}
.hero-image img,
.profile-img img,
.hero-photo img {
    transition: 0.4s ease-in-out;
}

.hero-image img:hover,
.profile-img img:hover,
.hero-photo img:hover {
    box-shadow: 0 0 20px red, 0 0 40px red;
    transform: scale(1.05);
}
/* Hover red glow on profile photo */
.hero img {
    transition: 0.4s ease-in-out;
}

.hero img:hover {
    box-shadow: 0 0 20px red, 0 0 40px red;
    transform: scale(1.05);
}
/* Normal profile image (blue border) */
.hero img {
    border: 4px solid #007bff;     /* blue border */
    border-radius: 50%;
    transition: 0.4s ease-in-out;
}

/* Hover effect: pulse red border + glow + zoom */
.hero img:hover {
    border-color: red;
    box-shadow: 
        0 0 15px red,
        0 0 35px red,
        0 0 55px red;
    transform: scale(1.08);
    animation: pulse-red 1.2s infinite ease-in-out;
}

/* Pulsing animation */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 10px red, 0 0 25px red;
    }
    50% {
        box-shadow: 0 0 25px red, 0 0 55px red;
    }
    100% {
        box-shadow: 0 0 10px red, 0 0 25px red;
    }
}
/* Base styling for profile image */
.hero img {
    border: 5px solid transparent;
    border-radius: 50%;
    transition: 0.5s ease-in-out;
    padding: 4px;
    background: linear-gradient(45deg, red, orange, yellow, lime, cyan, blue, violet);
    background-size: 400% 400%;
    animation: rainbow-flow 6s linear infinite;
}

/* Hover effect: rotation + rainbow pulse */
.hero img:hover {
    transform: scale(1.1) rotate(8deg);
    animation: rainbow-flow 2s linear infinite;
    box-shadow: 
        0 0 25px red,
        0 0 40px orange,
        0 0 55px yellow,
        0 0 70px lime,
        0 0 85px cyan,
        0 0 100px blue,
        0 0 120px violet;
}

/* Moving rainbow animation */
@keyframes rainbow-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
<link rel="stylesheet" href="style.css">
/* FOOTER */
.footer {
    background: rgba(0, 0, 50, 0.4);
    padding: 35px 0;
    text-align: center;
    margin-top: 60px;
    backdrop-filter: blur(10px);
}

.footer-icons {
    margin-bottom: 15px;
}

.footer-icon {
    font-size: 40px;           /* ICON SIZE — MAKE BIG */
    margin: 0 20px;            /* spacing */
    color: white;
    display: inline-block;
    transition: 0.3s ease;
}

.footer-icon:hover {
    color: red;
    text-shadow: 0 0 12px red;
    transform: scale(1.3);
}

.footer-text {
    color: #cccccc;
    font-size: 16px;
    margin-top: 10px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.video-card iframe {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    transition: 0.3s ease;
}

.video-card iframe:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px red;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.footer-social a {
  font-size: 40px;          /* bigger icons */
  color: white;
  transition: 0.3s ease;
}

.footer-social a:hover {
  color: red;
  transform: scale(1.2);
  text-shadow: 0 0 10px red;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.footer-social a {
  font-size: 40px;
  color: white;
  transition: 0.3s ease;
}

.footer-social a:hover {
  color: red;
  transform: scale(1.2);
  text-shadow: 0 0 10px red;
}
/* === AI Chatbot Styles === */

#ai-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Floating bubble button */
#ai-chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #00e5ff, #4c6fff);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ai-chatbot-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 24px rgba(76, 111, 255, 0.9);
}

/* Chat window */
#ai-chatbot-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 330px;
  max-height: 450px;
  background: #050816;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: none; /* hidden by default */
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.4);
}

/* Header */
.ai-chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: radial-gradient(circle at top left, #00e5ff, #1a237e);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.ai-chatbot-header button {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Messages area */
#ai-chatbot-messages {
  padding: 10px;
  max-height: 320px;
  overflow-y: auto;
  background: #050816;
  font-size: 14px;
  color: #e0e0e0;
}

.ai-chatbot-message {
  margin-bottom: 8px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 90%;
}

.ai-chatbot-bot {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.ai-chatbot-user {
  background: rgba(76, 111, 255, 0.2);
  border: 1px solid rgba(76, 111, 255, 0.4);
  margin-left: auto;
}

/* Input form */
#ai-chatbot-form {
  display: flex;
  padding: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050816;
}

#ai-chatbot-input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  font-size: 13px;
  background: #0b1020;
  color: #e0e0e0;
  outline: none;
}

#ai-chatbot-input::placeholder {
  color: #888;
}

#ai-chatbot-form button {
  margin-left: 6px;
  border-radius: 12px;
  border: none;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  background: linear-gradient(135deg, #00e5ff, #4c6fff);
  color: #fff;
}

/* Small screens */
@media (max-width: 600px) {
  #ai-chatbot-window {
    width: 95vw;
    right: -5px;
  }
}
body {
    font-family: Arial, sans-serif;
    padding: 20px;
}

.button {
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #3498db;
    color: white;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #2980b9;
}

.link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: #ef1e07;
}

.box {
    width: 150px;
    height: 150px;
    background-color: #2ecc71;
    margin: 20px 0;
    transition: background-color 0.3s ease;
}

.box:hover {
    background-color: #27ae60;
}
/* CHATBOT STYLES */
#ai-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

#ai-chatbot-toggle {
  background: #0078ff;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#ai-chatbot-window {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 320px;
  height: 430px;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

#ai-chatbot-window.open {
  display: flex;
}

#ai-chatbot-form {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

#ai-chatbot-form input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
}

#ai-chatbot-form button {
  padding: 8px 12px;
  background: #0078ff;
  color: white;
  border: none;
}

.chat-messages {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  background: #f7f7f7;
}
