/* Import Font */
@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg) !important;
    min-height: 1500px;
    overflow-x: hidden;
    color: var(--text) !important;
}

/* Shooting Stars */
.shooting-star {
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1),
                0 0 0 2px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(255, 255, 255, 1);
    animation: shooting-star-animation 3s linear infinite;
    z-index: 1;
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
    animation: shooting-star-trail 3s linear infinite;
}

#moon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 600px;
    height: auto;
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    max-width: none;
    min-width: 0;
    display: block;
    box-sizing: content-box;
    border: none;
    background: none;
    object-fit: contain;
}

@keyframes shooting-star-animation {
    0% {
        transform: rotate(var(--star-angle, 45deg)) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(var(--star-angle, 45deg)) translateX(1000px);
        opacity: 0;
    }
}

@keyframes shooting-star-trail {
    0% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) translateX(-100px);
        opacity: 0;
    }
}

/* Navigation Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background: var(--header-bg) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    flex-wrap: wrap;
}

header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text) !important;
    text-decoration: none;
}

header ul {
    display: flex;
    list-style: none;
    margin-right: 50px;
}

header ul li {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

header ul li:last-child {
    margin-right: 0;
}

header ul li a {
    text-decoration: none;
    color: var(--text) !important;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.3s ease;
    background: none !important;
}

header ul li a.active,
header ul li a:hover {
    color: #fff;
    background: #4B0082;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(75,0,130,0.15);
    padding: 5px 18px;
    border-bottom: none;
}

/* Light mode (default) */
header {
    border-bottom: 1.5px solid #e0e0e0; /* or your preferred light border */
}

/* Dark mode: hide or fade the border */
body.dark-mode header {
    border-bottom: 1.5px solid transparent; /* or rgba(255,255,255,0.08) for a faint line */
}

/* Hamburger Menu (hidden on desktop) */
.menu-toggle {
    display: none;
}

/* Scroll Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 1000;
}

#progress-bar .progress {
    height: 100%;
    width: 0;
    background: #fff;
    transition: width 0.1s ease-out;
}

/* Parallax Section */
section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 80px;
    background: var(--bg) !important;
    color: var(--text) !important;
}

#mountain {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: 110vh;
    z-index: 2;
    pointer-events: none;
}

#mountain::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 20vh;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 100%);
    display: block;
}

#mountain::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 16vh;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0) 0%, #000 100%);
    display: block;
}

#text {
    position: relative;
    color: #000 !important;
    font-size: 7em;
    z-index: 3;
    font-weight: bold;
}

/* Dark mode override */
body.dark-mode #text {
    color: #fff !important;
}

/* Section Styling */
section#about, section#projects, section#contact {
    background: var(--card-bg) !important;
    border-radius: 15px;
    color: var(--text) !important;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    margin: 20px auto;
    width: 80%;
}

section#about:hover, section#projects:hover, section#contact:hover {
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.7);
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    font-size: 1.2em;
    line-height: 1.8;
    font-weight: 300;
    color: var(--text) !important;
}

/* Projects Section */
#projects {
    padding: 50px 20px;
    text-align: center;
    color: white;
}

#projects h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.projects-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
}

.project-card p {
    font-size: 1em;
    color: #d1d1d1;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #4B0082;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.project-link:hover {
    background: #37006d;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Responsive Nav */
    header ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 10px;
        padding: 10px;
        display: none;
    }

    header ul.show {
        display: flex;
    }

    header ul li {
        margin: 10px 0;
    }

    #darkmode-toggle {
        font-size: 1.2em;
        padding: 8px 12px;
        margin: 5px 0;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8em;
        color: white;
        cursor: pointer;
    }

    #text {
        font-size: 5em;
    }

    section {
        height: 80vh;
    }

    section {
        padding-bottom: 50px;
    }    

    section#about, section#projects, section#contact {
        width: 90%;
        margin-top: 20px;
        padding: 30px 10px;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
        margin-bottom: 20px;
    }

    .project-link {
        font-size: 1em;
        padding: 12px 20px;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        display: none;
    }

    .menu-toggle {
        margin-left: auto;
    }

    header ul {
        right: 10px;
        top: 50px;
        text-align: left;
    }
    @media (max-width: 768px) {
        .projects-container {
            padding: 10px;
        }
    
        .project-card {
            width: 95%;
            margin-bottom: 20px;
            padding: 15px;
        }
    }

    @media (max-width: 768px) {
        section#about,
        section#projects,
        section#contact {
            transform: none;
            margin-top: 0;
        }
    }
    
    
}

@media (max-width: 480px) {
    #text {
        font-size: 3em;
    }

    section {
        height: 70vh;
    }

    #projects h2 {
        font-size: 2em;
    }

    .project-card h3 {
        font-size: 1.2em;
    }

    .project-card p {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }
}

html {
    scroll-behavior: smooth;
}

.about-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    margin: 50px auto;
    width: 80%;
    background: linear-gradient(135deg, #141e30, #243b55);
    border-radius: 15px;
    color: #ffffff;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 24px;
}

.about-card h2 {
    font-size: 2.2em;
    margin-bottom: 18px;
    color: #fff;
}

.about-card p {
    font-size: 1.15em;
    line-height: 1.7;
    color: #d1d1d1;
    margin-bottom: 18px;
}

.about-card .email {
    color: #fff;
    font-size: 1.1em;
    word-break: break-all;
    text-align: center;
    margin-bottom: 12px;
}

.about-card .social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons .fa {
    padding: 14px;
    font-size: 24px;
    width: 24px;
    text-align: center;
    text-decoration: none;
    margin: 0 2px;
    border-radius: 50%;
    transition: background 0.3s, opacity 0.3s;
}

.social-icons .fa:hover {
    opacity: 0.7;
}

.fa-linkedin {   
    background: #02abf9;   
    color: #fff; 
}

.fa-github {
    background: #333;
    color: #fff;
}

body.dark-mode .fa-linkedin {
    background: #fff !important;
    color: #111 !important;
    border: 2px solid #111 !important;
}
body.dark-mode .fa-github {
    background: #fff !important;
    color: #111 !important;
    border: none !important;
}

@media (max-width: 900px) {
    .card-container {
        flex-direction: column;
        align-items: center;
        width: 98%;
        padding: 20px;
        gap: 20px;
    }
    .card-left {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

.welcome-center {
    position: absolute;
    top: 18vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    z-index: 3;
}

.parallax-bg {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.project-card-3d {
    position: absolute;
    width: 320px;
    min-height: 220px;
    background: var(--card-bg) !important;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
    text-align: center;
    padding: 32px 24px;
    color: var(--text) !important;
    opacity: 0;
    transform: scale(0.7) translateX(0) rotateY(0deg);
    transition: 
        transform 0.3s cubic-bezier(.4,2,.6,1),
        box-shadow 0.3s,
        border 0.3s;
    z-index: 1;
    pointer-events: none;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.12);
}

.project-card-3d.active {
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0deg);
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 12px 40px 0 rgba(0,0,0,0.25), 0 2px 8px 0 rgba(0,0,0,0.18);
    border: 2px solid #fff;
}

.project-card-3d.active:hover {
    transform: scale(1.04) translateY(-8px) rotateY(0deg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 2px #fff2;
    border: 1.5px solid #fff3;
    cursor: pointer;
}

.project-card-3d.left,
.project-card-3d.right {
    opacity: 0.5;
    filter: blur(1.5px) grayscale(0.3);
}

.project-card-3d h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text) !important;
    letter-spacing: 1px;
}

.project-card-3d p {
    font-size: 1em;
    color: var(--text) !important;
    margin-bottom: 18px;
    opacity: 0.8;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 22px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s, border 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border: 1.5px solid transparent;
}

.project-link:hover {
    background: #000;
    color: #fff !important;
    transform: scale(1.07);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border: 1.5px solid #fff;
}

.carousel-btn {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, border 0.2s;
    z-index: 10;
    margin: 0 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #f0f0f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
  #moon {
    width: 120px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 600px) {
  #moon {
    width: 70px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 700px) {
    .project-card-3d {
      position: absolute !important;
      opacity: 0 !important;
      transform: scale(0.7) translateX(0) rotateY(0deg) !important;
      pointer-events: none !important;
    }
  
    .project-card-3d.active {
      position: relative !important;
      opacity: 1 !important;
      transform: none !important;
      pointer-events: auto !important;
      margin: 0 auto !important;
      width: 90vw !important;
    }
  
    .project-card-3d.left,
    .project-card-3d.right {
      display: none !important;
    }
  
    .project-carousel-3d {
      flex-direction: row;
      justify-content: center;
      align-items: center;
      height: auto;
    }
  
    #project-cards-3d {
      width: 100%;
      height: auto;
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
  
.email-btn {
    display: inline-block;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 12px 28px;
    font-size: 1.1em;
    text-decoration: none;
    margin: 18px 0 0 0;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.email-btn i {
    margin-right: 10px;
    font-size: 1.2em;
}
.email-btn:hover {
    background: #333;
    color: #fff;
}

#darkmode-toggle {
    position: static;
    background: none;
    border: none;
    font-size: 1.3em;
    color: var(--text);
    cursor: pointer;
    margin-left: 0;
    padding: 5px 10px;
    vertical-align: middle;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color 0.3s;
}
#darkmode-toggle:focus {
    outline: none;
}

