@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Montserrat:wght@300;400;500&display=swap');
:root {
        /* Dark theme (default) */
    --bg-color: #000;
    --text-color: rgba(255, 255, 255, 0.95);

    --nav-border: rgba(255, 255, 255, 0.1);
    --nav-hover-bg: rgba(40, 20, 60, 0.5);
    --nav-shadow: 0 7px 14px rgba(255, 50, 100, 0.3),
                        0 3px 6px rgba(0, 0, 0, 0.1);
    --content-h2-color: rgb(245, 252, 255);
    --content-h2-shadow: 0 0 10px rgba(255, 255, 255, 0.288),
                        0 0 8px rgba(42, 5, 253, 0.479);
    --h1-shadow: 0 0 15px rgba(0, 200, 255, 0.7);
    --toggle-bg: rgba(20, 20, 40, 0.7);
    --toggle-border: rgba(255, 255, 255, 0.1);
    --toggle-sun: #ffdb4d;
    --toggle-moon: #e6e6e6;
    --scrollbar: rgba(0, 170, 255, 0.034);
    --project-link-hover-color: 0077cc;
    --project-link-hover-shadow: 0 0 15px rgba(255, 50, 101, 0.39),
                                0 0 30px rgba(0, 0, 0, 0.1);
    --github-color: #f0f0f0;
    --mobile-header-height: 100px;
}

.light-mode {
    /* Light theme */
    --bg-color: linear-gradient(
        to bottom,
        #f0f0f0 0%,
        #f0f0f0 60%,
        rgb(161, 161, 153) 100%
  );
    --text-color: #333;
    --nav-border: rgba(0, 0, 0, 0.1);
    --nav-hover-bg: rgba(230, 230, 250, 0.9);
    --nav-shadow: 0 7px 14px rgba(1, 122, 192, 0.596),
                    0 3px 6px rgba(1, 1, 37, 0.336);
    --content-h2-color: #333;
    --content-h2-shadow: 0 0 10px rgba(255, 255, 255, 0.288),
                        0 0 8px rgba(42, 5, 253, 0.479);
    --h1-shadow: 0 0 15px rgba(0, 100, 200, 0.5);
    --toggle-bg: rgba(255, 255, 255, 0.7);
    --toggle-border: rgba(0, 0, 0, 0.1);
    --toggle-sun: #ff9900;
    --toggle-moon: #666;
    --scrollbar:#0077cc13;
    --project-link-hover-color: #0077cc;
    --project-link-hover-shadow: 0 0 15px rgba(0, 119, 204, 0.6),
                                0 0 30px rgba(0, 80, 180, 0.4);
    --github-color: #333;
    --mobile-header-height: 100px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    height: 100vh;
    overflow: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

#theme-toggle{
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(50px);
}
#theme-toggle:hover{
    transform:scale(1.1) rotate(15deg);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
}

#theme-toggle i{
    font-size: 1.5em;
    transition: all 0.3s ease;
}

#theme-toggle .sun{
    color: var(--toggle-sun);
}

#theme-toggle .moon{
    color: var(--toggle-moon)
}
/* Canvas styling */
canvas {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1 !important;
}

/* Right content styling */
.content {
    position: fixed;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 35%;
    z-index: 30;
    padding: 30px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 1.5em;
    font-weight: 200;
}

.content h1 {
    font-size: 1.9em;
    font-weight: 100;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    text-shadow: var(--h1-shadow);
    transition: text-shadow 0.5s ease;
}

.content h2 {
    font-size: 1.5em;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0;
    color: var(--text-color);
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
}
.content nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 30px 0;
    width: 100%;
}

.content nav a {
    display: block;
    margin: 10px 0;
    padding: 12px 25px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 500;
    letter-spacing: 0.5px;
    width: auto;
    text-align: right;
    position: relative;
    overflow: hidden;
    max-width: 250px;

}

.content nav a:hover {
    transform: translateY(-4px);
    box-shadow: var(--nav-shadow);


}

/* Left content container styling */
#content-container {
    position: fixed;
    top: 8%;
    left: 0;
    width: 50%;
    height: 92%;
    padding: 5%;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 20;
    color: var(--text-color);
    transition: color 0.5 ease;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
}

/* Animation for content */
.content-animate {
    animation: fadeIn 0.5s ease;
}
.content-left {
    max-width: 90%;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style content in left container */
#content-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 400;
    color: var(--content-h2-color);
    text-shadow: var(--content-h2-shadow);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    text-decoration: none;
}


#content-container p {
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 1.1em;
    transition: color 0.5s ease;
}



/* Custom scrollbar */
#content-container::-webkit-scrollbar {
    width: 8px;
}

#content-container::-webkit-scrollbar-track {
    background: transparent;
}

#content-container::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 4px;
}
.project-item h3 a{
    color: var(--content-h2-color);
    text-decoration: none;
    text-shadow:var(--content-h2-shadow);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 0 5px;
    margin: 0, -5px;
}
.project-item h3 a:visited{
    color: var(--content-h2-color)
}
.project-item h3 a:hover {
    text-decoration: none;
    color: var(--project-link-hover-color);
    text-shadow: var(--project-link-hover-shadow);
    transform: translateY(-2px);
}
/* Base header social links (small icons) */
.header-social-links {
  display: flex;
  gap: 15px;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
}

.header-social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.header-social-links a:hover {
  transform: translateY(-3px);
  opacity: 1;
}

/* Contact page social links (column layout) */
.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  max-width: 350px;
}

.contact-social-link:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-social-link i {
  font-size: 1.8rem;
  min-width: 40px;
  text-align: center;
}

.link-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--text-color);
  letter-spacing: 0.5px;
}

/* Platform colors */
.contact-social-link.linkedin i { color: #0a66c2; }
.contact-social-link.telegram i { color: #26a5e4; }
.contact-social-link.github i { color: var(--github-color); }

/* Light mode adjustments */
.light-mode .contact-social-link {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-mode .contact-social-link:hover {
  background: rgba(255, 255, 255, 0.9);
}
/* Mobile view */
@media (max-width: 768px) {

  .content {
        width: 50%;
        right: 50%;
        transform: translate(85%, -50%);
        text-align: right;
        align-items: right;
        z-index: 40;
        font-weight:200;
        font-size: 1em;
    }
    .content h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.8em;
    font-weight:200;
    margin-bottom: 10px;
    line-height: 1.3;
  }


    .content nav {
        align-items: right;
    }

    .content nav a {
        text-align: left;
    }

    #content-container {

    top: var(--mobile-header-height);
    left: 0;
    width: 50%;
    height: calc(100vh - var(--mobile-header-height));
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    z-index:50;
    transform: none;
    right: auto;
    text-align: left;
}
#content-container > * {
        max-width: 100%;
        overflow-x: hidden;
    }

#content-container h1{
    font-size: 1.5em;
}
#content-container h3{
    font-size: 1.3em;
}
.content-left {
    max-width: 100%;
    padding: 10px;
  }

#theme-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
#content-container::-webkit-scrollbar {
    width: 8px;
}

#content-container::-webkit-scrollbar-track {
    background: transparent;
}

#content-container::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 4px;
    visibility: visible !important;
}
.contact-social-links {
    align-items: center;
  }

.contact-social-link {
    width: 90%;
    max-width: none;
  }

.header-social-links {
    top: 50px;
    left: 20%;
    transform: translateX(-50%);
  }

}
