:root {
  /* Background Colors */
  --primary-color: #00f3ff;
  --secondary-color: #bc13fe;
  --bg-dark: #0f0f16;
    --text-muted: #a0a0b0;
  --text-color: #ffffff;

  /* Fonts */
  --main-font: "Outfit", sans-serif;
  --mono-font: "Space Mono", monospace;
}


/************
Global Styles
***************/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: var(--main-font);
}

body {
    background-color: #0f0f16;
    color: var(--text-color);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/************
    component
***************/
.flex{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.glassy{
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
}

/************
Navbar 
***************/
nav {
  width: 100%;
  z-index: 100;
  /* background: transparent; */
}
.nav-container {
  width: 100%;
  height: auto;
  background-color: rgba(232, 232, 236, 0.1);
  backdrop-filter: blur(10px);
  /* z-index: 10; */
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-item:hover .nav-link {
  color: var(--primary-color) !important;
  border-bottom: 2px solid var(--primary-color);
  transition: 0.5s ease;
}

.nav-link {
  color: var(--text-color) !important;
  font-size: 18px;
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-brand {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
  padding: 15px 20px;
}

/************
    Background Effects 
***************/

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.bg-light-top {
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  animation: floatingOrb 10s infinite alternate;
}

.bg-light-bottom {
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--secondary-color);
  animation: floatingOrb 8s infinite alternate-reverse;
}

@keyframes floatingOrb {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/************
        Home Section 
    ***************/

#home {
  position: relative;
  height: 100vh;
  width: 100%;
  flex-direction: column;
}

#home h3 {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 20px;
  font-family: var(--mono-font);
  font-weight: 750;
}

#home h1 {
  color: var(--text-color);
  font-size: 70px;
  margin-bottom: 10px;
  font-weight: 900;
}

/************
        TYPING WRITER 
    ***************/

.typing-con {
  /* width: 330px; */
  /* height: 100px; */
  text-align: center;
}
.typing-con + h2 {
  color: var(--text-color);
  font-size: 3.5rem;
}

.typing-letter {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  animation: typing 2s ease 0s infinite alternate;
}

@keyframes typing {
  from {
    width: 0%;
    overflow: hidden;
  }
  to {
    width: 75%;
  }
}

/************
        About Section
    ***************/

.title{
    width: 20%;
    border-bottom: 5px solid var(--primary-color);
    border-radius: 1rem;
    /* box-shadow: 0.5rem 0.5rem 1rem var(--primary-color); */
}
.title h2{
    font-size: 2.5rem;
    font-weight: 800;
}

#about, #skills, #projects, #contact{
    flex-direction: column;
    padding: 2rem;
}

.about-content{
    width: 60%;
    line-height: 1.7;
}

.about-btns{
    flex-direction: column;
}

.about-btns span{
    color: var(--primary-color);
    font-weight: 700;
}
.about-btns p{
    color: rgba(255, 255, 255, 0.7);
}

.skills-name h4{
    color: var(--secondary-color);
}

.card:hover{
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: 0.3s ease;
}

/************
        Contact Section
    ***************/
a{
    text-decoration: none;
    color: inherit;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--primary-color);
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transform: translateY(-3px);
}

.glass-form {
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 12px;
    color: var(--text-muted);
    transition: 0.3s;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    padding: 0 5px;
    background: var(--bg-dark); /* Hack to hide line behind label */
    color: var(--primary-color);
    border-radius: 4px;
}

/************
    Responsive Design
***************/

@media (max-width: 991px) {
    #home h1 {
        font-size: 3.5rem;
    }
    
    .about-content {
        width: 80%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .offcanvas{
        height: 300px;
        background-color: rgba(15, 15, 22, 0.9);
    }
    #home h1 {
        font-size: 2.5rem;
    }

    #home h3 {
        font-size: 1.5rem;
    }

    .typing-con + h2 {
        font-size: 2rem;
    }

    .title {
        width: 40%;
    }

    .about-content {
        width: 100%;
        padding: 20px;
    }
    
    .nav-container {
        border-radius: 10px; /* Less rounded on small screens if needed, or keep pill */
    }

    /* Adjust navbar padding on mobile */
    nav.navbar {
        padding: 1rem !important; /* Override p-4 */
    }

    .bg-light-top, .bg-light-bottom {
        width: 250px;
        height: 250px;
        filter: blur(80px); /* Reduce blur slightly for performance/visibility */
    }
}

@media (max-width: 576px) {
    #home h1 {
        font-size: 2.2rem;
    }
    
    .typing-letter {
        font-size: 1.2rem;
    }
    
    .typing-con + h2 {
        font-size: 1.5rem;
    }
    
    .title {
        width: 60%;
    }

    .contact-info, .glass-form {
        padding: 20px;
    }

    /* Make buttons stack on very small screens */
    .home-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .home-btns a {
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }
}

/* Custom Grid Fix for Projects to allow margins */
@media (min-width: 992px) {
    #projects .col-md-4 {
        flex: 0 0 30%;
        max-width: 30%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #projects .col-md-4 {
        flex: 0 0 45%;
        max-width: 45%;
    }
}