* {
    box-sizing: border-box;
  }

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    max-width: 100vw;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #0e0e0e;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

#chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4a90e2;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: white;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#chatbot-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  height: 400px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  display: none;
  flex-direction: column; 
}

#chat-box {
  flex: 1; 
  padding: 10px;
  overflow-y: auto; 
}

#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
}

#chatbot-input {
  display: flex;
  border-top: 1px solid #ccc;
  background: #f9f9f9;
}

#chatbot-input input {
  flex: 1;
  border: none;
  padding: 10px;
}

#chatbot-input button {
  border: none;
  background: #007bff;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
}

#loader {
  position: fixed;
  inset: 0;
  background-color: #0e0e0e; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.loader-content {
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

.loader-logo {
  width: 80px;
  height: 80px;
  animation: pulse 3s infinite;
}

.loader-text {
  color: #00f2ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  margin-top: 1rem;
  letter-spacing: 1px;
  animation: blink 2.5s steps(1) infinite; 
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #7F00FF 0%, rgba(0, 255, 255, 0) 100%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear;
    filter: blur(200px);
    z-index: -1;
    opacity: 60%;
    animation-delay: 1ms;
}

.profile {
    text-align: center;
}

.about {
    margin-left: 200px;
    margin-right: 800px;
    color: white;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 15px;
    width: 100%;
    max-width: 700px;
    margin: 20px auto 0 auto;
    box-sizing: border-box;
}

nav a {
    display: inline-block;
    padding: 4px;
    transition: background-color 0.3s, transform 0.3s;
    box-sizing: border-box;
    text-decoration: None;
    color: white;
    border-radius: 10px;
}

nav a img {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
    filter: invert(100%) sepia(90%) hue-rotate(120deg);
}

nav a:hover {
    background-color: gray;
    border-radius: 10px;
    transform: scale(1.05); 
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 5%;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.left-content,
.right-content {
  flex: 1 1 400px;
  max-width: 500px;
}

.intro-text {
    max-width: 500px;
    margin-top: 10px;
    font-size: 1.2rem;
    color: #fff;
    text-align: left;
}

.tagline {
    font-size: 1.5rem;
    font-weight: bold;
    color: cyan;
    margin-top: 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
  text-align: center;
}

.social-icons a img {
    transition: 0.3s;
    text-decoration: none;
    filter: invert(100%) sepia(90%) hue-rotate(120deg);
    margin: 0 10px;
}

.social-icons a:hover img {
    transform: scale(1.3);
    filter: brightness(2);
    filter: invert(200%) sepia(10%) hue-rotate(120deg);
}

.btn {
  position: relative;
  display: inline-block;
  padding: 12px 40px;
  font-size: 1.2rem;
  color: white;
  background: cyan;
  border-radius: 300px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  outline: none;
  border: none;
  margin-top: 20px;
  text-align: center;
  z-index: 0;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.btn:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.7), 0 0 60px rgba(0, 255, 255, 0.3);
}

.btn::after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #333;
    left: 0;
    top: 0;
    border-radius: 300px;
}

.btn::before {
    content: "";
    background: linear-gradient(
        45deg,
        red, orange, yellow, green,
        blue, purple, hotpink,red
    );
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px); 
    animation: glowing 20s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 300px;
    opacity: 1;
}
.fade-in {
    display: flex;               
    flex-wrap: wrap;            
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%; 
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInAnimation 1s ease-out forwards;
}

.fade-in2 {
    width: 100%; 
    opacity: 0;
    transform: translateY(20px); /* Slight move-up effect */
    animation: fadeInAnimation2 1s ease-out forwards;
}


@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInAnimation2 {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowing {
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 0 0;}
}

.btn:hover::before {
    opacity: 1;

}

.btn:active:after {
    background: transparent;
}

.btn:active {
    color: red;
    font-weight: bold;
}

.profile-pic {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
}
  
.container h1{
    text-align: left;
    margin-bottom: 5px;
}

.container img {
    max-width: 300px;
    height: auto;
    align-items: right;
}

.text {
    max-width: 500px;
}

.icon-container {
    display: flex;
    justify-content: left;
    gap: 15px; 
    margin-top: 10px;
    margin-left: 40px;
}

.icon-container a {
    transition: transform 0.3s;
}

.left-content, .right-content {
    flex: 1 1 400px;
    max-width: 500px;
}
  
.profile-pic {
    width: 100%;
    max-width: 350px;
    border: 2px solid white;
    border-radius: 12px;
}

.icon-container a:hover {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .left-content, .right-content {
        max-width: 100%;
    }
    
    .nav {
        flex-direction: row;         
        flex-wrap: wrap;             
        justify-content: center;
        gap: 8px;                   
    }
    
    .nav a {
        margin: 0;
        flex: 1 0 auto;         
        text-align: center;
    }
    
    .icon-container {
        justify-content: center;
        margin: 15px 0;
    }
    
    .btn {
        margin: 20px auto;
    }
}
  
.photo-grid {
    grid-template-columns: 1fr; 
}
  
.social-icons {
    justify-content: center;
    flex-wrap: wrap;
}











