@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --obsidian: #050505;
  --quartzite: #e0e0e0;
  --accent: #DAA520;
  --gradient: linear-gradient(135deg, var(--obsidian), #1a1a1a);
  --subtle-border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.03);
  --section-bg-alt: #0a0a0a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  background: var(--obsidian);
  color: var(--quartzite);
  line-height: 1.8;
  padding-top: 70px;
  top: 0 !important;
  font-size: 17px;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.2rem 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--quartzite);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Custom Translate Links Container */
.custom-translate-links {
  text-align: center;
  padding: 30px 0;
  position: relative;
  z-index: 999;
  display: flex;
  justify-content: center;
}

/* Desktop links - visible on larger screens */
.desktop-links {
  display: block;
}

/* Mobile dropdown - visible on smaller screens */
.mobile-dropdown {
  display: none;
}

/* Style individual custom translate links */
.custom-translate-links a {
  display: inline-block;
  vertical-align: middle;
  color: var(--quartzite);
  text-decoration: none;
  padding: 0 0.6rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.custom-translate-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--quartzite);
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-toggle:hover {
  color: var(--accent);
}

.dropdown-toggle i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown-toggle.active i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 200px;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-menu.active {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--quartzite);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .desktop-links {
    display: none;
  }
  
  .mobile-dropdown {
    display: block;
  }
}

/* Style the flag icons */
.custom-translate-links .fi {
  margin-right: 0.4em;
}

/* Hide the default Google Translate widget */
#google_translate_element {
    display: none !important;
}

/* Hide the Google Translate banner iframe that appears after translation */
iframe.skiptranslate {
    display: none !important;
}

/* Hide the Google Translate rating popup */
.goog-gt-tt {
    display: none !important;
}

.section {
  min-height: 100vh;
  padding: 8rem 2rem;
  display: flex;
  align-items: center;
  z-index: 1;
  border-bottom: 1px solid var(--subtle-border);
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

/* Stagger section animations */
#about { animation-delay: 0.1s; }
#work { animation-delay: 0.2s; }
#portfolio { animation-delay: 0.3s; }
#specialties { animation-delay: 0.4s; }
#contact { animation-delay: 0.5s; }

/* Keyframes for fade-in effect */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove border from last section */
.section:last-of-type {
    border-bottom: none;
}

.glow-bg {
  background: var(--gradient);
  position: relative;
  border-bottom-color: transparent;
}

.glow-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(218, 165, 32, 0.1), transparent 60%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--quartzite), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}

h2 {
  font-size: 3rem;
  margin-bottom: 3.5rem;
  color: var(--accent);
  text-align: center;
}

.subtitle {
  font-size: 1.3rem;
  color: var(--quartzite);
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.project-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  font-weight: 500;
}

.project-card img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.project-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  margin-top: 1.5rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.project-link:hover {
  background-color: rgba(218, 165, 32, 0.1);
  color: #FAD02E;
  transform: translateY(-2px);
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-cta {
  color: var(--accent);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;
  animation: pulse 2s infinite;
}

.contact-cta i {
  margin-left: 0.5rem;
  color: var(--accent);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.contact-form-container {
  width: 100%;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-buttons {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--quartzite);
  text-decoration: none;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

.contact-item:hover {
  transform: translateY(-4px);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
}

.contact-item i {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .contact-content {
    gap: 1rem;
  }
  
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .contact-form-container,
  .contact-buttons {
    padding: 1.2rem;
  }
  
  .contact-item {
    padding: 1rem;
  }
}

.header-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.header-text {
  flex-grow: 1;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  background: var(--obsidian);
}

.profile-video,
.profile-image-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.3s ease;
}

.profile-image-static {
  object-position: 100% center;
}

.profile-video {
  opacity: 0;
}

.profile-image-static {
  opacity: 1;
}

/* Play button overlay */
.profile-image::after {
  content: '\f04b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--accent);
  opacity: 0;
  z-index: 5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.profile-image:hover::after {
  opacity: 1;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(218, 165, 32, 0.3);
}

.profile-image:hover .profile-video,
.profile-image:hover .profile-image-static {
  filter: brightness(0.85);
}

/* Add a subtle pulse animation to the play button */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.profile-image:hover::before {
  animation: pulse 2s infinite;
}

.about-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.about-content hr {
  width: 60px;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: 1rem auto;
  position: relative;
  opacity: 0.7;
}

.about-content hr::before,
.about-content hr::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  top: -3px;
}

.about-content hr::before {
  left: 0;
}

.about-content hr::after {
  right: 0;
}

.work-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 15px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: visible;
}

.work-content p {
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  line-height: 1.8;
  overflow: visible;
}

.work-content > p,
.work-content > div#work-details {
  text-align: left;
}

.intro-text {
  font-size: 1.15rem;
  color: var(--quartzite);
}

.body-text {
  color: var(--quartzite);
  opacity: 0.9;
}

.closing-text {
  color: var(--quartzite);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.specialty-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.specialty-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.specialty-card i {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.specialty-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--quartzite);
}

.specialty-card p {
  color: var(--quartzite);
  opacity: 0.85;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    gap: 1rem;
  }
  .section {
    padding: 4rem 1rem;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .profile-image {
    width: 225px;
    height: 225px;
  }
  /* Reduce nav link size on tablets */
  .nav-links a {
    font-size: 0.95rem;
  }
}

/* Further reduce nav link size on smaller phones */
@media (max-width: 480px) {
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem; /* Adjust padding slightly too */
  }
  .nav-links {
    gap: 0.5rem; /* Reduce gap further */
  }
}

.footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 4rem;
  background: rgba(10, 10, 10, 0.95);
  color: var(--quartzite);
  opacity: 0.8;
  border-top: 1px solid var(--subtle-border);
}

/* Translation Notification */
#translate-notice {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background-color: rgba(10, 10, 10, 0.85);
  color: var(--quartzite);
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#translate-notice.visible {
  opacity: 1;
}

/* View More Button Styling */
.view-more-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6em 1.2em;
  background-color: var(--accent);
  color: var(--obsidian);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.view-more-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.view-more-btn:hover::after {
  width: 200%;
  height: 200%;
}

.view-more-btn:hover {
  background-color: #FAD02E;
  transform: translateY(-2px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--quartzite);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--subtle-border);
  border-radius: 6px;
  color: var(--quartzite);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: var(--accent);
  color: var(--obsidian);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background-color: #FAD02E;
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

.error-message {
  color: #f44336;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  min-height: 1.2rem;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #f44336;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.form-group input:focus.error,
.form-group textarea:focus.error {
  border-color: #f44336;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

#work-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

#work-details.visible {
  opacity: 1;
  max-height: none;
  overflow: visible;
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--obsidian);
    border: 1px solid var(--subtle-border);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.chatbot-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    padding: 15px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--subtle-border);
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    font-size: 1.5rem;
    color: var(--quartzite);
    text-shadow: 0 0 10px var(--accent);
    filter: drop-shadow(0 0 5px var(--accent));
    transition: transform 0.3s ease;
}

.header-title:hover .header-icon {
    transform: scale(1.1);
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--accent);
}

.close-chatbot {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--quartzite);
    transition: color 0.3s ease;
}

.close-chatbot:hover {
    color: var(--accent);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--obsidian);
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
    margin-bottom: 10px;
}

.message-text {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

.message.user {
    background: var(--accent);
    color: var(--obsidian);
    align-self: flex-end;
    border-radius: 15px 15px 0 15px;
}

.message.bot {
    background: var(--card-bg);
    color: var(--quartzite);
    align-self: flex-start;
    border-radius: 15px 15px 15px 0;
    border: 1px solid var(--subtle-border);
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid var(--subtle-border);
    display: flex;
    gap: 10px;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 0 0 10px 10px;
}

.chatbot-input textarea {
    flex: 1;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--subtle-border);
    border-radius: 5px;
    resize: none;
    max-height: 100px;
    font-family: inherit;
    color: var(--quartzite);
}

.chatbot-input textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.chatbot-input button {
    padding: 10px 15px;
    background: var(--accent);
    color: var(--obsidian);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

.chatbot-input button:hover {
    background: #FAD02E;
    transform: translateY(-2px);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 60px;
    height: 60px;
    padding: 10px 20px;
    background: var(--accent);
    color: var(--obsidian);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.chatbot-toggle i {
    font-size: 1.2rem;
}

.chatbot-toggle span {
    display: inline-block;
    margin-left: 4px;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    background: #FAD02E;
}

/* Ensure the button is visible on all backgrounds */
.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 35px;
    background: transparent;
    border: 2px solid var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chatbot-toggle:hover::before {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .chatbot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}