@import url("https://fonts.googleapis.com/css?family=Montserrat|Montserrat+Alternates|Poppins&display=swap");

/* =========================
   GLOBAL
========================= */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat Alternates", sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    height: 100%;
}

body {
    background-image: url("../img/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.02);
    z-index: -1;
}

/* =========================
   HEADER
========================= */
.header {
    width: 100%;
    height: 80px;
    background: rgba(17, 17, 17, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    backdrop-filter: blur(6px);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-menu label {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.logo h1 {
    color: #fff;
    font-weight: 400;
    font-size: 22px;
}

/* =========================
   NAVIGATION
========================= */
.menu {
    display: flex;
    gap: 25px;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: #cfcfcf;
    padding: 10px;
    transition: all 0.3s ease;
}

.menu a:hover {
    color: #fff;
}

.menu a::after {
    transition: all 0.3s ease;
}

.menu a.active {
    color: #fff;
    font-weight: 600;
}

.menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

/* =========================
   SIDE MENU
========================= */
#btn-menu {
    display: none;
}

.side-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    z-index: 3000;
}

#btn-menu:checked~.side-menu-container {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    width: 250px;
    height: 100%;
    background: #1c1c1c;
    transform: translateX(-100%);
    transition: 0.4s ease;
    position: relative;
}

#btn-menu:checked~.side-menu-container .side-menu {
    transform: translateX(0);
}

.side-menu nav {
    margin-top: 80px;
}

.side-menu nav a {
    display: block;
    padding: 20px;
    color: #c7c7c7;
    text-decoration: none;
    transition: 0.3s ease;
}

.side-menu nav a:hover {
    background: #272727;
    padding-left: 30px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

/* =========================
   MAIN / SECTIONS
========================= */
.main-content {
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

section {
    scroll-margin-top: 110px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #232323;
}

.title-line {
    display: block;
    width: 60px;
    height: 4px;
    margin: 0 0 20px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 999px;
}

/* =========================
   HERO (Main Presentation)
========================= */
/* Main container split into 2 columns (Text / Image) */
.hero {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 120px;
    min-height: calc(100vh - 80px);
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    justify-items: center;
}

.hero-text {
    max-width: 560px;
}

.hero-text h2 {
    font-size: 64px;
    margin-bottom: 20px;
    color: #2f2f2f;
    line-height: 1.1;
}

.hero-text p {
    font-size: 22px;
    line-height: 1.7;
    color: #2f2f2f;
    margin-bottom: 30px;
    max-width: 560px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* =========================
   ABOUT
========================= */
.about {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 40px 0;
}

.about .title-line {
    display: none;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #252525;
    max-width: 800px;
}

/* Glassmorphism card (cell) wrapping the biographical text */
.about-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 30px 28px;
    max-width: 900px;
    margin-top: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-card p {
    font-size: 17px;
    line-height: 1.8;
    color: #2f2f2f;
    margin-bottom: 16px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* =========================
   PROJECTS (Projects Section)
========================= */
/* General layout and spacing for the Projects section container */
.projects {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 40px 0;
}

.projects .section-title {
    margin-bottom: 40px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* Individual project card (cell) with glassmorphism and blue accent border */
.project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 5px solid #3b82f6; /* Blue border like the image */
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.project-title {
    font-size: 26px;
    color: #1f2937;
    margin: 0;
}

/* Green pill/badge indicating role or technology (e.g. FRONT-END) */
.project-date-badge {
    background: #5595b1;
    /* Green badge */
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.project-subtitle {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Bullet point list describing project features */
.project-features {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}

.project-features li {
    margin-bottom: 8px;
}

.project-impact {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
}

.project-impact strong {
    color: #111827;
}

/* =========================
   SKILLS
========================= */
.skills {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 40px 0;
}

.skills .section-title {
    margin-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-content: center;
}

.skill-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-header i {
    font-size: 24px;
    color: #3b82f6;
}

.skill-header h3 {
    font-size: 20px;
    color: #1f2937;
    margin: 0;
}

.skill-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.skill-list li {
    font-size: 15px;
    color: #374151;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.skill-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 16px;
}

/* =========================
   EXPERIENCE (TIMELINE)
========================= */
.experience {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 40px 0;
}

.tabs-container {
    display: flex;
    flex-direction: row;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
}

.tabs-sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    min-width: 250px;
    background: rgba(0, 0, 0, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.tab-btn {
    background: none;
    border: none;
    border-left: 4px solid transparent;
    padding: 20px 25px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #1f2937;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.8);
    border-left-color: #3b82f6;
    color: #3b82f6;
}

.tabs-content-area {
    padding: 35px;
    flex-grow: 1;
    min-height: 380px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-title {
    font-size: 22px;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.tab-subtitle {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    background: #5595b1;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.tab-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-features li {
    font-size: 15px;
    color: #374151;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.tab-features li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 16px;
}

/* Tabs Responsive */
@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
    }
    .tabs-sidebar {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        overflow-x: auto;
    }
    .tab-btn {
        border-left: none;
        border-bottom: 4px solid transparent;
        white-space: nowrap;
        padding: 15px 20px;
    }
    .tab-btn.active {
        border-left-color: transparent;
        border-bottom-color: #3b82f6;
    }
    .tabs-content-area {
        padding: 25px;
        min-height: auto;
    }
}

/* =========================
   CONTACT
========================= */
.contact {
    width: 100%;
    background: #000000;
    padding: 20px 0;
    text-align: center;
}

.contact .contact-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact .contact-title h2 {
    color: #ffffff;
    font-size: 42px;
    margin-bottom: 8px;
}

.contact .title-line {
    margin: 0 auto 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.contact-intro {
    max-width: 700px;
    margin: 0 auto 25px;
}

.contact-intro p {
    color: #cfcfcf;
    font-size: 16px;
    line-height: 1.6;
}

.connect-link {
    color: #3b82f6; /* Blue highlight color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.connect-link:hover {
    color: #60a5fa; /* Lighter blue on hover */
    text-decoration: underline;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

/* Contact card (cell) used in the contact grid (linking to Email, LinkedIn, etc.) */
.contact-card {
    background: #111111;
    border-radius: 10px;
    padding: 20px 16px;
    text-decoration: none;
    color: #ffffff;
    transition: 0.25s ease;
}

.contact-card:hover {
    background: #414141;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.contact-card i {
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 13px;
    color: #a9a9a9;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.contact-social a {
    color: #a9a9a9;
    font-size: 20px;
    transition: 0.2s ease;
}

.contact-social a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */
.footer {
    width: 100%;
    background: #272727;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.5px;
}



/* =========================
   ANIMATIONS (Scroll Reveal)
========================= */
/* Base class assigned to elements hidden by default until scrolled into view */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* =========================
   SHOPPING CART (SIDE DRAWER)
========================= */
.nav-cart-btn {
    position: relative;
    font-size: 20px;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: rgba(255, 255, 255, 0.1); /* sin color / subtle */
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.2s ease;
}

.cart-badge.has-items {
    background: #ef4444; /* bright red */
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.cart-badge.pop {
    transform: scale(1.3);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    z-index: 4000; /* Above everything */
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
    backdrop-filter: blur(15px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.cart-overlay.active .cart-drawer {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
}

.close-cart-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cart-btn:hover {
    color: #fff;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty-msg {
    color: #9ca3af;
    text-align: center;
    margin-top: 50px;
    font-size: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    color: #60a5fa;
    font-size: 14px;
    font-weight: 500;
}

.cart-item-remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-checkout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* Coming soon alert inside the cart */
.checkout-alert {
    display: none;
    margin-top: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}
.checkout-alert.active {
    display: block;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 40px;
        margin: 0 auto 90px;
    }

    .hero-text {
        max-width: 650px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-text h2 {
        font-size: 48px;
    }

    .hero-text p {
        font-size: 18px;
        margin-left: auto;
        margin-right: auto;
    }

    .about {
        margin: 0 auto 90px;
        padding: 20px 0;
    }

    .contact .contact-wrapper {
        padding: 0 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact .contact-title h2 {
        font-size: 32px;
    }

    .menu {
        display: none;
    }
    
    .cart-drawer {
        width: 100%;
        border-left: none;
    }
}