@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url("//cdn.web-fonts.ge/fonts/bpg-arial/css/bpg-arial.min.css");

/* Theme Variables */
:root {
    --color-bg: linear-gradient(135deg, #fff8e0, #d6e4ff, #ffe0f0, #fff8e0);
    --color-text: #1b263b;
    --color-text-secondary: #555;
    --color-gray: gray;
    --color-heading: #333;
    --color-strong: #1E3A8A;
    --color-strong-hover: #415a77;
    --color-strong-active: #152C5B;
    --color-highlight: #ffe0f0;
    --color-white: white;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-box: white;
    --color-card-hover: rgba(0, 0, 0, 0.2);
    --color-scroll-track: rgba(214, 228, 255, 0.3);
    --color-scroll-thumb: linear-gradient(45deg, #1E3A8A, #9333EA);
    --color-scroll-thumb-hover: linear-gradient(45deg, #152C5B, #7B2CBF);
    --color-contact-bg: #1E3A8A;
    --color-contact-text: white;
    --color-contact-accent: #ffe0f0;
  }
  
  .dark {
    --color-bg: linear-gradient(135deg, #1e1e2f, #2c2f4a, #3a2f4d, #1e1e2f);
    --color-text: #e2e8f0;
    --color-text-secondary: #cbd5e1;
    --color-gray: #cbd5e1;
    --color-heading: #f8fafc;
    --color-strong: #60a5fa;
    --color-strong-hover: #93c5fd;
    --color-strong-active: #1d4ed8;
    --color-highlight: #f472b6;
    --color-white: #2b2b3c;
    --color-shadow: rgba(0, 0, 0, 0.4);
    --color-box: #2b2b3c;
    --color-card-hover: rgba(255, 255, 255, 0.1);
    --color-scroll-track: rgba(255, 255, 255, 0.05);
    --color-scroll-thumb: linear-gradient(45deg, #6366f1, #8b5cf6);
    --color-scroll-thumb-hover: linear-gradient(45deg, #4338ca, #7c3aed);
    --color-contact-bg: #111827;
    --color-contact-text: #e0e0f0;
    --color-contact-accent: #f9a8d4;
  }
  
html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--color-text);
  min-height: 100vh;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

::selection,
::-moz-selection {
  color: var(--color-highlight);
  background: var(--color-strong);
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  padding: 40px 50px;
  animation: fadeIn 1s ease-out;
  z-index: 100;
}

.navbar a {
  text-decoration: none;
  font-size: 20px;
  color: var(--color-text);
  margin-left: 45px;
  transition: 0.3s;
}

.navbar a:hover {
  color: var(--color-strong-hover);
}
button#theme-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    margin-left: 20px;
}
button#theme-toggle i{
    color: var(--color-text);
}
#home, .home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  overflow: hidden;
  text-align: left;
  animation: fadeIn 1s ease-out;
}

.profile-info {
  display: flex;
  gap: 30px;
  align-items: center;
}

#photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 10px;
  box-shadow: 0 4px 10px var(--color-card-hover);
  transition: transform 0.3s ease;
}

#photo:hover {
  transform: scale(1.05);
}

.home h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--color-strong), #9333EA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.location, .quote, .description {
  margin: 5px 0;
}

.location {
  color: var(--color-gray);
}

.quote {
  font-weight: 700;
}

.description {
  max-width: 400px;
  font-size: 17px;
  animation: fadeIn 1.2s ease-out forwards;
}

#work {
  padding: 50px 0;
  display: flex;
  justify-content: center;
}

.work-container {
  display: flex;
  width: 60%;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
}

.left, .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.education, .experience, .skills, .certifications {
  background: var(--color-box);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--color-shadow);
  transition: transform 0.3s ease;
  min-height: 130px;
}

.education:hover, .experience:hover, .skills:hover, .certifications:hover {
  transform: scale(1.03);
}

h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-heading);
  border-left: 5px solid var(--color-strong);
  padding-left: 15px;
  margin-bottom: 15px;
}

p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

strong {
  color: var(--color-strong);
}

.cv-download-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--color-strong);
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
}

.cv-download-button:hover {
  background-color: var(--color-strong-active);
  transform: scale(1.05);
}

.cv-download-button:active {
  transform: scale(0.95);
}

#cv {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20vh;
  margin-bottom: 100px;
}

#contact {
  background-color: var(--color-contact-bg);
  color: var(--color-contact-text);
  padding: 60px 20px;
  text-align: center;
}

#contact h2 {
  font-size: 30px;
  margin-bottom: 25px;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info p,
.contact-info a {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--color-contact-text);
  text-decoration: none;
}

.contact-info strong {
  color: var(--color-contact-accent);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
}

.social-links a {
  font-weight: bold;
  font-size: 18px;
  color: var(--color-contact-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-highlight);
}

.work-card {
  cursor: pointer;
}

.popup {
  display: none;
  position: fixed;
  z-index: 101;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup.show {
  opacity: 1;
}

.popup-content {
  background-color: var(--color-box);
  padding: 20px;
  /* border: 1px solid #888; */
  width: 60%;
  border-radius: 10px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  margin: 15% auto;
}

.popup.show .popup-content {
  transform: translateY(0);
}

.close-popup {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-popup:hover,
.close-popup:focus {
  color: black;
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  background: var(--color-scroll-track);
  border-radius: 10px;
  margin: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-scroll-thumb);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-scroll-thumb-hover);
  transform: scale(1.05);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: var(--color-strong) var(--color-scroll-track);
    scrollbar-width: thin;
  }
}
