/* style.css */
:root {
    --gradient-start: #2c3e50;
    --gradient-end: #4ca1af;
    --text-color-light: #ffffff;
    --text-color-dark: #000000;
    --icon-color: #ff7700; /* Dark orange */
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text-color-light);
    background: linear-gradient(135deg, var(--gradient-start) 25%, var(--gradient-end) 75%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-color-light);
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar .nav-links li {
    display: inline;
}

.navbar .nav-links li a {
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: bold;
}

.navbar .contact-button {
    margin-left: auto; /* This moves the button to the right */
    margin-right: 50px; /* Adjust this value to move the button toward the center */
}

.navbar .contact-button a {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.navbar .contact-button a:hover {
    background-color: #0056b3;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    color: var(--text-color-light);
}

.hero-section .hero-content {
    z-index: 10;
    animation: fadeInUp 2s ease-in-out;
}

.hero-section h1 {
    font-size: 3em;
    margin: 0 0 20px 0;
}

.hero-section p {
    font-size: 1.2em;
    margin: 0 0 20px 0;
}

.hero-section .hero-button {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    z-index: 10;
}

.hero-section .hero-button:hover {
    background-color: #0056b3;
}

.hero-section .background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.background-animation .circle {
    width: 100px;
    height: 100px;
    background-color: #0056b3;
    border-radius: 50%;
    position: absolute;
}

.content-section {
    padding: 100px 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    margin: 20px;
    border-radius: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

section p {
    font-size: 1.2em;
    max-width: 800px;
    text-align: center;
}

#skills .skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

#skills .skill {
    display: inline-block;
    width: 100px;
    text-align: center;
    margin: 10px;
    color: var(--text-color-light);
}

#skills .skill i {
    font-size: 3em;
    margin-bottom: 10px;
    color: var(--icon-color);
}

.chart-container {
    width: 400px;
    height: 400px;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

#projects {
    text-align: center;
}

#project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-frame {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-frame:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.9);
}

#project-description-container {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    display: none;
    animation: fadeIn 1s ease-in-out;
    backdrop-filter: blur(10px);
}

/* Animation for selected project frame */
.project-frame.active {
    animation: selectedHighlight 0.5s ease-out;
}

/* Define keyframes for a pulse/glow effect */
@keyframes selectedHighlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

.project-frame.active {
    border: 3px solid #ff7700; 
    box-shadow: 0 0 10px rgba(255, 119, 0, 0.8);
}

#learn-more {
    display: block;
    margin-top: 10px;
    color: var(--text-color-light);
    text-decoration: none;
}

#learn-more:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.background-animation .circle {
    animation: float 10s infinite;
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 300px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    z-index: 1000;
    font-family: 'Arial', sans-serif;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#chatbot-header {
    background-color: #007bff;
    padding: 10px;
    color: white;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

#chatbot-body {
    display: none;
    flex-direction: column;
    height: 400px;
    justify-content: space-between;
    padding: 10px;
}

#chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

#chatbot-messages p {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    backdrop-filter: blur(10px);
}

#chatbot-input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

#chatbot-send {
    background-color: #ff7700;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#chatbot-send:hover {
    background-color: #0056b3;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Thinking indicator */
.thinking-indicator {
    background-color: #555;
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.thinking-indicator span {
    font-size: 1.5em;
    animation: thinking 1.4s infinite ease-in-out;
    display: inline-block;
    margin-right: 3px;
}

.thinking-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.thinking-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.6;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Project's STATISTICS */
.project-stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  animation: fadeIn 1s ease-in-out;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 8px;
  min-width: 120px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.6);
}

.stat-item i {
  font-size: 2em;
  margin-bottom: 10px;
  color: var(--icon-color);
}

.stat-item span {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-item p {
  margin: 0;
  font-size: 0.9em;
  opacity: 0.8;
  text-align: center;
}

.stats-footer {
  width: 100%;
  text-align: center;
  margin-top: 15px;
  font-size: 0.8em;
  opacity: 0.7;
}

.stats-update-info {
  font-style: italic;
}
