/* ====== Modern Portfolio Theme ====== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
  --primary: #bd93f9;               /* Dracula purple */
  --secondary: #8be9fd;             /* Cyan highlight */
  --bg: #282a36;                    /* Dark background */
  
  --bg-f: #44475a;                  /* Panels and elevated blocks */
  --bg-glass: rgba(68, 71, 90, 0.75);
  --bg-glass2: rgba(40, 42, 54, 0.85);
  
  --text: #f8f8f2;                  /* Foreground text */
  --text-secondary: #6272a4;        /* Comment-style subtext */
  --accent: #ff79c6;                /* CTA/button pink */
  
  --border: rgba(189, 147, 249, 0.15); /* Subtle purple border */
  --shadow: 0 8px 32px 0 rgba(189, 147, 249, 0.1); /* Soft glow */
}
[data-theme="light"] {
  --primary: #5a4d8b;               /* Deep muted purple */
  --secondary: #007a99;             /* Cyan variant (darker) */
  --bg: #f2eafa;                    /* Very light lavender background */
  
  --bg-f: #e6dbf8;                  /* Light panel purple */
  --bg-glass: rgba(230, 219, 248, 0.85);
  --bg-glass2: rgba(210, 198, 240, 0.9);
  
  --text: #1e1c2a;                  /* Deep plum/black for readability */
  --text-secondary: #4b5265;        /* Muted gray-purple for subtext */
  --accent: #c026d3;                /* Warm pink accent (Dracula pink-inspired) */
  
  --border: rgba(90, 77, 139, 0.12);
  --shadow: 0 8px 32px 0 rgba(90, 77, 139, 0.08);
}



body {
  color: var(--text);           /* Use your text color variable */
  background: var(--bg);      /* Set background color */
}
html, body {
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 1.5rem auto 0 auto;
  padding: 1.2rem 2vw;
  background: var(--bg-glass2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  position: sticky;
  top: 1rem;
  z-index: 100;
}

nav h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 2rem;
}

.navigation {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: 0;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: transparent;
}

.burger-menu, #theme-toggle {
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.burger-menu:hover, #theme-toggle:hover {
  background: var(--primary);
  box-shadow: 0 4px 16px 0 var(--primary);
}

#language-select {
  background: var(--bg-glass2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 1.2rem;
  margin-left: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, border 0.2s;
}
#language-select:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  padding: 4rem 2vw 2rem 2vw;
  background: var(--bg-glass2);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  margin: 2rem auto 1rem auto;
  max-width: 900px;
  box-shadow: var(--shadow);
  text-align: center;
}

.bio-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bio-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.skills {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--bg-glass2);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem 2vw;
}

.skill-header {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.icon-card {
  background: var(--bg-glass);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(31, 38, 135, 0.10);
  padding: 1.5rem;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: grab;
  border: 2px solid transparent;
}
.icon-card:active {
  cursor: grabbing;
  transform: scale(1.07);
  border: 2px solid var(--primary);
}
.icon-card:hover {
  box-shadow: 0 4px 24px 0 var(--primary);
  transform: translateY(-6px) scale(1.08);
  border: 2px solid var(--primary);
}

.drag-placeholder {
  width: 50px;
  height: 50px;
  border: 2px dashed var(--primary);
  border-radius: 16px;
  margin: 0.5rem;
  background: rgba(79, 140, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drag-placeholder img {
  width: 80px;
  height: 80px;
  opacity: 0.5;
  object-fit: contain;
}

.projects {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--bg-glass2);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem 2vw;
}

.projects-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.project-card {
  background: var(--bg-glass);
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(31, 38, 135, 0.10);
  padding: 1.5rem;
  width: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.18s;
}
.project-card:hover {
  box-shadow: 0 4px 24px 0 var(--primary);
  transform: translateY(-6px) scale(1.03);
  border: 2px solid var(--primary);
}
.project-pic {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}
.project-details {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.project-link {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.project-link:hover {
  background: var(--accent);
  color: #222;
}

.contact {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--bg-glass2);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem 2vw;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Square social icons for contact section */
.contact-socials {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.social-link {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 16px; /* Slightly rounded square */
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link img {
  width: 80px;
  height: 80px;
  border-radius: 16px; /* Square with rounded corners */
  background: #fff;
  object-fit: contain;
  box-shadow: 0 2px 12px 0 rgba(62,166,255,0.10);
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
  padding: 12px;
}

.social-link:hover img {
  box-shadow: 0 4px 24px 0 var(--primary);
  transform: scale(1.08);
  background: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}

.form-input, .form-textarea {
  width: 90%;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font-size: 1.1rem;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 1px 4px 0 rgba(62,166,255,0.08);
}

.form-input:focus, .form-textarea:focus {
  border: 1.5px solid var(--primary);
  outline: none;
  background: rgba(62,166,255,0.08);
  box-shadow: 0 0 0 2px var(--primary);
}

.cta-button {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(62,166,255,0.10);
}

.cta-button:hover {
  background: var(--accent);
  color: #222;
  box-shadow: 0 4px 16px 0 var(--accent);
}

footer {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--bg-glass2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2.2rem 2vw 1.5rem 2vw;
  border: 1.5px solid var(--border);
  color: var(--text);
  text-align: center;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
footer a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--accent);
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(31, 38, 135, 0.20);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: background 0.2s, transform 0.2s;
}
#back-to-top:hover {
  background: var(--accent);
  color: #222;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 900px) {
  nav {
    flex-direction: row;
    padding: 1rem 2vw;
  }
  .navigation {
    display: none;
    flex-direction: column;
    background: var(--bg-glass2);
    position: absolute;
    top: 70px;
    right: 2vw;
    width: 200px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    z-index: 999;
  }
  .navigation.show {
    display: flex;
  }
  .burger-menu {
    display: flex;
  }
}

@media (min-width: 901px) {
  .navigation {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    width: auto;
    box-shadow: none;
    padding: 0;
  }
  .burger-menu {
    display: none;
  }
}
@media (max-width: 800px) {
  .navigation {
    display: none;
    flex-direction: column;
    background: var(--bg-glass2);
    position: absolute;
    top: 70px;
    right: 2vw;
    width: 200px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    z-index: 999;
  }
  .navigation.show {
    display: flex;
  }
  .burger-menu {
    display: block;
  }
}

@media (min-width: 801px) {
  .navigation {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    width: auto;
    box-shadow: none;
    padding: 0;
  }
  .burger-menu {
    display: none;
  }
}@media (max-width: 600px) {
  nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 2vw;
    min-height: unset;
  }
  nav h1 {
    font-size: 1.2rem;
    margin-right: 0.5rem;
  }
  .burger-menu,
  #theme-toggle,
  #language-select {
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    padding: 0.3rem 0.5rem;
    font-size: 1rem;
  }
  .burger-menu img {
    width: 28px;
    height: 28px;
  }
  .navigation {
    top: 60px;
    right: 2vw;
    width: 90vw;
    min-width: 0;
    border-radius: 14px;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }
  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
  }
}