/* Styles for Portfolio Template */
html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}
body {
    background: #121212;
    color: #ffffff;
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
}

a {
    color: #9b59b6;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    overflow: visible;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, transform 0.3s ease;
}

/* When hidden, the bar itself stays transparent but content remains visible */
.navbar.hidden {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
}

.navbar.visible {
    transform: translateY(0);
    width: 100%;
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.navbar.scrolled {
    width: 100%;
    background: rgba(30, 30, 30, 0.55);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(60, 0, 110, 0.3),
                0 0 16px 8px rgba(100, 0, 160, 0.5);
    padding: 0.25rem 2rem;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.navbar .nav-links a {
    color: #fff;
    padding: 0.5rem 0;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease, font-size 0.3s ease;
}

.navbar.scrolled .nav-links a {
    font-size: 0.95rem;
}
.navbar .nav-links a:hover {
    color: #7f00ff;
    border-bottom-color: #7f00ff;
}

.navbar .nav-links a.active {
    color: #7f00ff;
    border-bottom-color: #7f00ff;
}

.navbar .hamburger {
    display: none;
    cursor: pointer;
}

.logo {
    font-weight: 600;
    font-size: 2rem;
    transition: font-size 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    font-size: inherit;
    text-decoration: none;
    border-bottom: none;
}

.logo img {
    height: 80px;
}

.navbar.scrolled .logo img {
    height: 60px;
}

.navbar.scrolled .logo {
    font-size: 1.5rem;
}

.logo-text {
    display: inline-block;
}

.logo-tech {
    background: linear-gradient(45deg, #7f00ff, #e100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@media (max-width: 768px) {
    .navbar .nav-links {
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(30, 30, 30, 0.85);
        backdrop-filter: blur(8px);
        display: none;
        padding: 1rem 0;
    }
    .navbar .nav-links.show {
        display: flex;
    }
    .navbar .hamburger {
        display: block;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .navbar.no-toggle .nav-links {
        flex-direction: row;
        position: static;
        background: none;
        backdrop-filter: none;
        display: flex;
        padding: 0;
    }
    .navbar.no-toggle .hamburger {
        display: none;
    }
}

@media (max-width: 480px) {
    .portfolio-card {
        width: 100%;
        height: 200px;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1e1e1e, #2a003d);
    animation: gradientMove 10s ease infinite alternate;
}

@keyframes gradientMove {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}


.hero h1 {
    font-size: 3em;
    margin: 0;
    text-shadow: 0 0 8px rgba(80, 0, 150, 0.6),
                 0 0 15px rgba(80, 0, 150, 0.4);
}

.hero .name {
    color: #9b59b6;
}

.hero .typing {
    font-size: 1.5em;
    margin-top: 0.5em;
    height: 1.5em;
    text-shadow: 0 0 8px rgba(80, 0, 150, 0.6),
                 0 0 15px rgba(80, 0, 150, 0.4);
}

section {
    padding: 3rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    background-color: rgba(127,0,255,0.05);
    border-radius: 8px;
    padding: 2rem;
}

.profile-pic {
    border-radius: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    flex: 0 0 40%;
    max-width: 40%;
    filter: drop-shadow(0 0 10px rgba(80, 0, 120, 0.4));
}

.about-content div:last-child {
    flex: 1;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #9b59b6;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #b97bff;
    transform: translateY(-2px);
}

.cv-btn:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 2rem;
    margin-top: 1rem;
}

.portfolio-filters {
    text-align: center;
    margin-bottom: 1rem;
}

.filter-btn {
    background: #1e1e1e;
    color: #fff;
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #fff;
    color: #000;
}

.portfolio-card {
    width: 250px;
    height: 200px;
    perspective: 1000px;
    margin: auto;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-out;
    transform-style: preserve-3d;
}

.portfolio-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #1e1e1e;
}


.card-front {
    gap: 0.5rem;
    text-align: center;
}

.card-front h3 {
    margin: 0;
}


.card-back {
    transform: rotateY(180deg);
    padding: 1rem;
    text-align: center;
    background: rgba(0,0,0,0.7);
    color: #fff;
}

.portfolio-card[data-flipped="true"] {
    cursor: pointer;
}



.card-front svg,
.card-front img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}



.skill {
    margin-bottom: 1rem;
}

.progress {
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
}

.progress .skill-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #7f00ff, #e100ff);
    width: 0;
    transition: width 1s ease;
}

.extra-skills {
    display: none;
}

.extra-skills.open {
    display: block;
}

#expand-skills {
    display: block;
}


.testimonial-slider {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.testimonial {
    position: absolute;
    left: 50%;
    width: 80%;
    padding: 2rem;
    background: #222;
    border-radius: 8px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: top 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
    text-align: center;
}

.testimonial.prev {
    top: 25%;
    opacity: 0.6;
}

.testimonial.active {
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.testimonial.next {
    top: 75%;
    opacity: 0.6;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}


blockquote {
    margin: 0;
    font-style: italic;
    position: relative;
}

blockquote::before,
blockquote::after {
    content: '"';
    color: #9b59b6;
    font-size: 2rem;
    position: absolute;
}

blockquote::before {
    top: -10px;
    left: -10px;
}

blockquote::after {
    bottom: -10px;
    right: -10px;
}

.testimonials {
    position: relative;
}

.slider-controls {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.control {
    cursor: pointer;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(127, 0, 255, 0.7);
    background: rgba(127, 0, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 8px rgba(127, 0, 255, 0.6);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.control:hover {
    background: rgba(127, 0, 255, 0.3);
    box-shadow: 0 0 12px rgba(127, 0, 255, 0.8);
    color: #fff;
}

.dots {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(127, 0, 255, 0.7);
    background: rgba(127, 0, 255, 0.15);
    box-shadow: 0 0 8px rgba(127, 0, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #7f00ff;
    box-shadow: 0 0 12px rgba(127, 0, 255, 0.8);
}

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

.contact input,
.contact textarea {
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 4px;
    background: #111;
    color: #fff;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: #7f00ff;
    box-shadow: 0 0 4px rgba(127,0,255,0.5);
}

.contact .error {
    border-color: red;
}

.contact button {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background: #7f00ff;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact button:hover {
    background: #6a00d1;
}

.footer {
    padding: 2rem 1rem;
    background: #1a001a;
    color: #fff;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.25);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    transition: color 0.3s ease, filter 0.3s ease;
}
.social-icons a svg {
    filter: drop-shadow(0 0 4px rgba(127, 0, 255, 0.4));
    transition: filter 0.3s ease;
}
.social-icons a:hover {
    color: #7f00ff;
}
.social-icons a:hover svg {
    filter: drop-shadow(0 0 8px rgba(127, 0, 255, 0.8));
}
.copy {
    text-align: center;
    margin-top: 1rem;
}
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(80, 0, 160, 0.8);
    background: linear-gradient(135deg, rgba(63, 0, 95, 0.6), rgba(30, 0, 60, 0.6));
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(127, 0, 255, 0.3);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    z-index: 100;
}
.back-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-top:hover {
    background: linear-gradient(135deg, rgba(90, 0, 170, 0.7), rgba(50, 0, 110, 0.7));
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(127, 0, 255, 0.6);
}



.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Project pages */
.project-container {
    padding: 6rem 2rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(127, 0, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(127, 0, 255, 0.1);
}

.project-showcase img,
.project-showcase svg {
    display: block;
    width: 100%;
    height: auto;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(127, 0, 255, 0.3);
}
.project-showcase.lead {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 1rem;
}
.project-details > h2:first-child {
    margin-top: 0;
}
.project-details {
    margin-top: 2rem;
    line-height: 1.6;
}
.project-details h2,
.project-details h3 {
    margin-top: 1.5rem;
}
.project-details ul {
    margin: 0.5rem 0 1.5rem 1.5rem;
    list-style: disc;
}
.project-details .btn {
    margin-right: 1rem;
}

.project-showcase img {
    cursor: pointer;
}

.project-gallery {
    margin-top: 0;
    padding: 0 0 1rem;
}

.project-gallery h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.project-showcase.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.project-showcase.gallery img {
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.project-showcase.gallery img:hover {
    transform: scale(1.02);
}

.project-showcase.gallery.carousel {
    grid-template-columns: 1fr;
    gap: 0;
    place-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.project-showcase.gallery.carousel img {
    grid-area: 1 / 1;
    width: 100%;
}

.project-showcase.gallery.carousel img.carousel-main {
    z-index: 2;
}

.project-showcase.gallery.carousel img.carousel-behind {
    filter: brightness(0.8);
    z-index: 1;
}

.project-showcase.gallery.carousel img.carousel-behind.left {
    transform: translateX(-20%) scale(0.9);
}

.project-showcase.gallery.carousel img.carousel-behind.right {
    transform: translateX(20%) scale(0.9);
}

.project-showcase.gallery.carousel img.carousel-behind.left:hover {
    transform: translateX(-30%) scale(0.9);
}

.project-showcase.gallery.carousel img.carousel-behind.right:hover {
    transform: translateX(30%) scale(0.9);
}

@media (max-width: 768px) {
    .project-container {
        padding: 5rem 1rem 2rem;
    }
}

@media (max-width: 600px) {
    .project-header {
        flex-direction: column;
        text-align: center;
    }
    .project-logo {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .project-container {
        padding: 4rem 1rem 1.5rem;
    }
    .project-showcase.lead {
        margin: 1rem auto;
    }
    .project-showcase.gallery.carousel img.carousel-behind.left {
        transform: translateX(-10%) scale(0.9);
    }
    .project-showcase.gallery.carousel img.carousel-behind.right {
        transform: translateX(10%) scale(0.9);
    }
    .project-showcase.gallery.carousel img.carousel-behind.left:hover {
        transform: translateX(-15%) scale(0.9);
    }
    .project-showcase.gallery.carousel img.carousel-behind.right:hover {
        transform: translateX(15%) scale(0.9);
    }
}

.img-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.img-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.img-overlay .overlay-prev,
.img-overlay .overlay-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.img-overlay .overlay-prev { left: 20px; }
.img-overlay .overlay-next { right: 20px; }

.details-toggle {
    margin: 1rem 0;
    background: transparent;
    color: #fff;
    border: 2px solid #7f00ff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.details-toggle:hover {
    background: #7f00ff;
    color: #fff;
}

.more-details {
    display: none;
    margin-top: 1rem;
}

.more-details.open {
    display: block;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(127,0,255,0.5));
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tech-badges span {
    background: rgba(127,0,255,0.15);
    border: 1px solid rgba(127,0,255,0.4);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.project-facts li {
    background: #1e1e1e;
    border: 1px solid rgba(127,0,255,0.3);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 0 8px rgba(127,0,255,0.2);
}

.project-facts strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bbb;
    margin-bottom: 0.25rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 1rem 0;
}

.info-card {
    background: #1e1e1e;
    border: 1px solid rgba(127,0,255,0.3);
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 0 8px rgba(127,0,255,0.2);
}

.info-card h3 {
    margin-top: 0;
}

/* Timeline section styling */
ul.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: rgba(127,0,255,0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -23px;
    top: 0.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7f00ff;
    box-shadow: 0 0 6px rgba(127,0,255,0.6);
}

.timeline-date {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

/* Project navigation links */
.project-nav {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.project-nav a {
    padding: 0.75rem 1.25rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    flex: 1;
    text-align: center;
    transition: background 0.2s, box-shadow 0.2s;
}

.project-nav a:hover {
    background: #222;
    box-shadow: 0 0 10px rgba(127,0,255,0.4);
}

.project-nav .prev-project {
    text-align: left;
}

.project-nav .next-project {
    text-align: right;
}

/* Coming soon page */
.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.coming-soon-content .logo {
    font-size: 2.5rem;
}

.coming-soon-content p {
    font-size: 1.2rem;
    color: #bbb;
}

#dev-login {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    color: #7f00ff;
    font-weight: 600;
    text-decoration: none;
}

#dev-badge {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background: rgba(127, 0, 255, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2000;
}

#dev-badge button {
    background: #fff;
    border: none;
    color: #7f00ff;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
}

#dev-badge button:hover {
    background: #f0f0f0;
}

