:root {
    /* Dark theme colors (default) */
    --primary: #6C5CE7;
    --primary-dark: #5A4ED1;
    --primary-light: rgba(108, 92, 231, 0.1);
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border: #334155;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] {
    --primary: #6C5CE7;
    --primary-dark: #5A4ED1;
    --primary-light: rgba(108, 92, 231, 0.1);
    --bg-dark: #FFFFFF;
    --bg-card: #F8FAFC;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --border: #E2E8F0;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Add smooth transition for theme changes */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px var(--shadow-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: var(--bg-dark);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.typed-container {
    color: var(--primary);
    font-size: 2.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    width: 80%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.social-links .social-img {
    height: 1.7rem;
    width: auto;
    display: inline-block;
}

/* Sections */
.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-card) !important;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.about-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary);
    font-weight: 500;
}

/* Skills and Tools */
.skills, .tools {
    margin-top: 2rem;
}

.skills h4, .tools h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags, .tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tags span, .tool-tags span {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Research Cards */
.research-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow-color);
}

.research-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.research-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.research-card p {
    color: var(--text-secondary);
}

/* Personal Section */
.personal-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
.contact-form .form-control {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-primary);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.15);
    background: var(--bg-card);
}

.contact-form .form-control::placeholder {
    color: var(--text-secondary);
}

.contact-form .btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 0.8rem 2.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.2);
}

/* Footer */
.footer {
    background: var(--bg-card);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    margin-left: 0 !important;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .typed-container {
        font-size: 2rem;
    }

    .hero-image img {
        width: 100%;
        margin-top: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .research-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .typed-container {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .personal-content {
        padding: 2rem;
    }
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

aside.side-bar {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 280px;
    height: 100vh;
    padding: 2rem;
    background: var(--bg-card);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

img#pfp {
    width: 160px;
    height: 160px;
    margin: 1rem auto;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    transition: transform 0.3s ease;
}

img#pfp:hover {
    transform: scale(1.05);
}

.name {
    font-family: 'Glacial Indifference', sans-serif;
    text-align: center;
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--text-primary);
    font-weight: 700;
}

.name:hover {
    color: var(--primary);
}

.social {
  margin: 1.5rem auto;
  width: 100%;
}

.social ul {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social ul li {
  list-style: none;
}

.social ul li a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social ul li a:hover {
  transform: translateY(-3px);
}

.linkedin:hover { color: #0077B5; }
.twitter:hover { color: #1DA1F2; }
.instagram:hover { color: #E4405F; }
.github:hover { color: #333; }

.navigation {
    margin-top: 2rem;
}

.navigation ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.navigation ul li {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navigation ul li:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

main {
    margin-left: 280px;
    padding: 2rem;
    background: var(--bg-dark);
    min-height: 100vh;
}

.banner {
    width: 100%;
    height: 300px;
    background-image: linear-gradient(rgba(108, 92, 231, 0.8), rgba(108, 92, 231, 0.8)),
                      url("https://d3ugq33b6jrffx.cloudfront.net/wp-content/uploads/2018/05/Neural-Networks.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.title {
    margin: 2rem 0;
}

.title h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.card-text {
    color: var(--text-primary);
    line-height: 1.6;
}

hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

#CV {
  margin: 5% 2.5% 5% 5%;
}

#bio {
  margin: 5% 5% 5% 2.5%
}

#contact {
  float:bottom;
  margin-left: 0 !important;
  padding: 5rem 0;
  background-color:var(--bg-card);
  width: 100%;
}

.row {
  justify-content: space-between;
}

.footer {
    background-color: var(--bg-card);
    padding: 5rem 0 2rem;
    margin-left: 0 !important;
    width: 100%;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.02);
}

.footer h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2.5rem;
}

.contact-form .form-control {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.15);
    background: var(--bg-card);
}

.contact-form .btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.2);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    aside.side-bar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    aside.side-bar.active {
        transform: translateX(0);
    }

    main {
        margin-left: 0;
        padding: 1rem;
    }

    #menu {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--bg-card);
        padding: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .title h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .footer {
        margin-left: 0 !important;
        padding: 3rem 0 1.5rem;
    }
    
    .footer h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    #contact {
        margin-left: 0 !important;
        padding: 3rem 0;
    }
}

@media (max-width:700px) {
  
  #menu{
    display: block;
    position: fixed;
    top: 10px;    
    left: 10px;   
    z-index: 1000;  
  }

  #side-bar-mobile {
      position: fixed;
      flex-flow: column nowrap;
      width: 100%;
      height: 100%;
      background-color: var(--bg-card);
      z-index: 999;
      top: -100%;
      left: 0;
      transition: top 0.5s ease-in-out; 
      max-height: 200%;
      overflow-y: auto; 
  }
  #side-bar-mobile h1{
    margin: 16px 0 0 0;
  }
  #side-bar-mobile .social{
    margin: 16px auto 0 auto;
  }
  #side-bar-mobile img {
    width: 70vw;
    margin: auto;
  }
  #side-bar-mobile nav ul{
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: stretch;
    height: 50vh;
    text-align: center;
  }
  #side-bar-mobile nav ul li a  {
    font-size: 2rem;
  }

  #side-bar-desktop {
    display: none;
  }
  #main-page {
    margin-left: 0%;
    width: 100%;
  }
  #main-footer {
    margin-left: 0%;
    width: 100%;
  }
  #contact {
    margin-left: 0%;
    width: 100%;
  }
}

/* Experience Cards */
.experience-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    height: 100%;
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow-color);
}

.experience-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-card .position {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-card .date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.experience-card ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-card ul li:before {
    content: "→";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* Achievement Cards */
.achievement-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    height: 100%;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow-color);
}

.achievement-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.achievement-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.achievement-card ul li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.achievement-card ul li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Theme toggle button */
.theme-toggle {
    position: relative;
    margin-left: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary);
    transform: rotate(15deg);
}

/* CV Download button */
.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cv-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.2);
    color: white;
}

.cv-button i {
    font-size: 1.2rem;
}

/* Add transition for all color changes */
* {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}
