/* ========================= */
/* Import Google Fonts */
/* ========================= */
@import url('https://fonts.googleapis.com/css2?family=Borel&family=Jua&family=Permanent+Marker&display=swap');

/* ========================= */
/* Define Global Variables */
/* ========================= */
:root {
    --color-primary: #ddca7d;
    --color-secondary: #000000;
    --color-accent: #717744;
    --color-highlight: #FFC40C;
    --bg-gradient-dark: linear-gradient(90deg, hsla(205, 46%, 10%, 1) 0%, hsla(191, 28%, 23%, 1) 50%, hsla(207, 41%, 27%, 1) 100%);
    --font-marker: "Permanent Marker", cursive;
    --font-jua: "Jua", sans-serif;
    /* Light Mode Colors */
    --bg-main: #ffffff;
    --bg-sidebar: var(--bg-gradient-dark);
    --text-color: #333333;
    --text-heading: #000000;
    --text-sidebar: #ffffff;
    --form-bg: #fafafa;
    --input-border: #dddddd;
    --btn-bg: var(--color-primary);
    --btn-hover: #cdaa60;
    --card-bg: #fafafa;
    --section-bg: transparent;
    --nav-active: rgba(255, 255, 255, 0.3);
}

/* Dark Mode Colors */
body.dark-mode {
    --bg-main: #161a2e;
    --bg-sidebar: linear-gradient(90deg, #0d1117, #161b22, #0d1117);
    --text-color: #e6e6e6;
    --text-heading: #ffffff;
    --text-sidebar: #ffffff;
    --form-bg: #1c2133;
    --input-border: #444444;
    --btn-bg: #ddca7d;
    --btn-hover: #cdaa60;
    --card-bg: #1c2133;
    --section-bg: #1a1e2d;
    --nav-active: rgba(255, 255, 255, 0.25);
}

/* ========================= */
/* Reset & Base Styles */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jua);
    background-color: var(--color-highlight);
    padding: 20px;
    overflow-x: hidden;
    height: calc(100vh - 40px);
    transition: background-color 0.3s ease;
}

.toggle-checkbox,
.sidebar-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ========================= */
/* Hide Scrollbar */
/* ========================= */
.content-area {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.content-area::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* ========================= */
/* Floating Social Icons */
/* ========================= */
.floating-social {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.floating-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-secondary);
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-social a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tooltip-left {
    position: relative;
}

.tooltip-left::after {
    content: attr(data-tip);
    position: absolute;
    left: -140px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.tooltip-left:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .floating-social {
        display: none;
    }
}

/* ========================= */
/* Main Container */
/* ========================= */
.main-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    background: var(--bg-main);
    border: 5px solid var(--color-secondary);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

/* ========================= */
/* Sidebar — FIXED HEIGHT, NO SCROLL */
/* ========================= */
.side-bar {
    width: 280px;
    background: var(--bg-sidebar);
    color: var(--text-sidebar);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 10;
    height: 100%;
    overflow: hidden;
    gap: 10px;
}

.side-bar::-webkit-scrollbar {
    display: none;
}

/* ✅ Dark Mode Toggle at Top */
.dark-mode-toggle-top {
    display: flex;
    justify-content: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mode-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.mode-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mode-toggle-btn .fas.fa-sun {
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s ease;
}

body.dark-mode .mode-toggle-btn .fas.fa-moon {
    opacity: 0;
}

body.dark-mode .mode-toggle-btn .fas.fa-sun {
    opacity: 1;
}

/* MOBILE SIDEBAR STYLES - FIXED */
@media (max-width: 1024px) {
    .side-bar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100%;
        border-radius: 0;
        z-index: 1000;
        transition: left 0.4s ease;
    }

    /* This is the key fix - proper CSS selector for mobile sidebar */
    #sidebar-toggle:checked~.main-container .side-bar,
    #sidebar-toggle:checked+.main-container .side-bar {
        left: 0;
    }
}

.nav-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-list li a {
    text-decoration: none;
    font-size: 18px;
    font-family: var(--font-jua);
    color: var(--text-sidebar);
    padding: 14px 20px;
    border-radius: 12px;
    display: block;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-list li a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.nav-list li a.active {
    background: var(--nav-active);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-list li a.active::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-highlight);
    border-radius: 50%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
    margin-top: auto;
}

.user-info p {
    font-size: 18px;
    font-family: var(--font-jua);
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
    color: var(--text-sidebar);
}

#img-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--color-highlight);
    transition: all 0.4s ease;
}

#img-icon:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 196, 12, 0.5);
}

/* ========================= */
/* Content Area — ONLY SCROLLABLE PART */
/* ========================= */
.content-area {
    flex: 1;
    padding: 40px;
    background: var(--bg-main);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: background-color 0.3s ease;
}

/* Hide all sections by default */
.page-section {
    display: none;
    width: 100%;
    max-width: 1200px;
    animation: fadeIn 0.5s ease forwards;
    background: var(--section-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.page-section.active {
    display: block;
}

#default {
    display: block;
}

#home:target~#default,
#about:target~#default,
#projects:target~#default,
#resume:target~#default,
#certificates:target~#default,
#contact:target~#default {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: var(--font-marker);
    color: var(--text-heading);
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

/* ========================= */
/* REDESIGNED RESUME SECTION */
/* ========================= */

.resume-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Resume Header */
.resume-header {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--input-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.resume-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex: 1;
}

.resume-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 4px solid var(--color-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.resume-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.resume-basic-info h1 {
    font-family: var(--font-marker);
    font-size: 36px;
    color: var(--text-heading);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.resume-basic-info h2 {
    font-family: var(--font-jua);
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: normal;
}

.resume-tagline {
    font-family: var(--font-jua);
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 500px;
    transition: color 0.3s ease;
}

.resume-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-jua);
    font-size: 16px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-item i {
    color: var(--color-primary);
    width: 20px;
    text-align: center;
}

.resume-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.btn-download,
.btn-print {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: var(--font-jua);
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-download {
    background: var(--btn-bg);
    color: var(--color-secondary);
}

.btn-download:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-print {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-print:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Resume Content Grid */
.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.resume-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.section-header i {
    color: var(--color-primary);
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.section-header h3 {
    font-family: var(--font-marker);
    font-size: 24px;
    color: var(--text-heading);
    margin: 0;
    transition: color 0.3s ease;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-content {
    background: rgba(221, 202, 125, 0.05);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(221, 202, 125, 0.1);
    transform: translateX(5px);
}

.timeline-content h4 {
    font-family: var(--font-jua);
    font-size: 18px;
    color: var(--text-heading);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.company,
.institution {
    font-family: var(--font-jua);
    font-size: 16px;
    color: var(--color-primary);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.duration {
    font-family: var(--font-jua);
    font-size: 14px;
    color: var(--text-color);
    background: rgba(221, 202, 125, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.experience-details {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.experience-details li {
    font-family: var(--font-jua);
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.experience-details li::before {
    content: '▸';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 0;
}

.education-details {
    font-family: var(--font-jua);
    font-size: 14px;
    color: var(--text-color);
    margin-top: 10px;
    transition: color 0.3s ease;
}

/* Skills Section */
.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-category {
    background: rgba(221, 202, 125, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(221, 202, 125, 0.2);
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(221, 202, 125, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
    font-family: var(--font-jua);
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-align: center;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-item {
    background: rgba(221, 202, 125, 0.2);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-jua);
    font-size: 14px;
    border: 1px solid rgba(221, 202, 125, 0.3);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    transform: scale(1.05);
}

/* Project Highlights */
.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-highlight {
    background: rgba(221, 202, 125, 0.05);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.project-highlight:hover {
    background: rgba(221, 202, 125, 0.1);
    transform: translateX(5px);
}

.project-highlight h4 {
    font-family: var(--font-jua);
    font-size: 16px;
    color: var(--text-heading);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-highlight p {
    font-family: var(--font-jua);
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background: rgba(221, 202, 125, 0.2);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 15px;
    font-family: var(--font-jua);
    font-size: 12px;
    border: 1px solid rgba(221, 202, 125, 0.3);
}

/* Achievements */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(221, 202, 125, 0.05);
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(221, 202, 125, 0.1);
    transform: translateX(5px);
}

.achievement-item i {
    color: var(--color-primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.achievement-item span {
    font-family: var(--font-jua);
    font-size: 14px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* Print Styles */
@media print {
    .resume-wrapper {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .resume-header {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .resume-actions {
        display: none;
    }

    .timeline-content {
        break-inside: avoid;
    }
}

/* Responsive Design for Resume */
@media (max-width: 1024px) {
    .resume-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .resume-header {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .resume-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .resume-contact-info {
        align-items: center;
    }

    .resume-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .resume-header {
        padding: 20px;
    }

    .resume-basic-info h1 {
        font-size: 28px;
    }

    .resume-basic-info h2 {
        font-size: 20px;
    }

    .resume-avatar img {
        width: 100px;
        height: 100px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-marker {
        left: -20px;
    }

    .section-header h3 {
        font-size: 20px;
    }

    .resume-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .resume-wrapper {
        padding: 15px;
    }

    .resume-header {
        padding: 15px;
    }

    .resume-basic-info h1 {
        font-size: 24px;
    }

    .timeline-content {
        padding: 15px;
    }

    .skill-items {
        justify-content: flex-start;
    }
}

/* ========================= */
/* HOME SECTION */
/* ========================= */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 40px 0;
}

.home-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.profile-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

#profile-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

#profile-img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.home-text {
    flex: 1;
    text-align: left;
}

.home-text h1 {
    font-family: var(--font-marker);
    font-size: 48px;
    color: var(--text-heading);
    margin-bottom: 15px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.highlight {
    color: var(--color-primary);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-family: var(--font-jua);
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.description {
    font-family: var(--font-jua);
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 35px;
    transition: color 0.3s ease;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-jua);
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--color-secondary);
}

.btn-primary:hover {
    background: var(--btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .home-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

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

    #profile-img {
        max-width: 300px;
    }

    .home-text h1 {
        font-size: 36px;
    }
}

/* ========================= */
/* ABOUT SECTION */
/* ========================= */
.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.about-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-family: var(--font-marker);
    font-size: 28px;
    color: var(--text-heading);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.about-text p {
    font-family: var(--font-jua);
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

.skills-list {
    list-style: none;
    padding-left: 0;
}

.skills-list li {
    font-family: var(--font-jua);
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    transition: color 0.3s ease;
}

.skills-list li:before {
    content: "✓";
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-image img {
        max-width: 300px;
    }
}

/* ========================= */
/* PROJECTS SECTION */
/* ========================= */
.projects-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid var(--input-border);
}

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

.project-image {
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-family: var(--font-marker);
    font-size: 24px;
    color: var(--text-heading);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.project-info p {
    font-family: var(--font-jua);
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    font-family: var(--font-jua);
    font-size: 14px;
    color: var(--color-primary);
    background: rgba(221, 202, 125, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(221, 202, 125, 0.3);
}

.project-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-links .btn-primary,
.project-links .btn-secondary {
    padding: 10px 20px;
    font-size: 16px;
}

/* ========================= */
/* CERTIFICATES SECTION */
/* ========================= */
.certificates-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.section-subtitle {
    font-family: var(--font-jua);
    font-size: 20px;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.certificate-card {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    perspective: 1000px;
}

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

.cert-front,
.cert-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    transition: transform 0.6s ease;
}

.cert-front {
    transform: rotateY(0deg);
}

.cert-back {
    background: var(--card-bg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: rotateY(180deg);
    border: 1px solid var(--input-border);
}

.certificate-card:hover .cert-front {
    transform: rotateY(-180deg);
}

.certificate-card:hover .cert-back {
    transform: rotateY(0deg);
}

.cert-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.cert-tag {
    font-family: var(--font-jua);
    font-size: 14px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
}

.cert-back h3 {
    font-family: var(--font-marker);
    font-size: 22px;
    color: var(--text-heading);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.cert-issuer,
.cert-date {
    font-family: var(--font-jua);
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.cert-back .btn-secondary {
    margin-top: 20px;
    align-self: flex-start;
}

/* ========================= */
/* CONTACT SECTION */
/* ========================= */
.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.contact-img-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

#contact-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

#contact-img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-form-container {
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid var(--input-border);
    background: var(--form-bg);
    font-family: var(--font-jua);
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(221, 202, 125, 0.3);
}

.submit-btn {
    background: var(--btn-bg);
    color: var(--color-secondary);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-jua);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: var(--btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.form-message {
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    font-family: var(--font-jua);
    font-size: 16px;
    margin-top: 15px;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid #F44336;
    display: block;
}

@media (max-width: 1024px) {
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }

    #contact-img {
        max-width: 300px;
    }
}

/* ========================= */
/* MOBILE TOGGLE BUTTON - FIXED */
/* ========================= */
.mobile-toggle-btn {
    display: none;
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1001;
    background: var(--color-primary);
    color: var(--color-secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
}

.mobile-toggle-btn:hover {
    background: var(--btn-hover);
    transform: scale(1.05);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#sidebar-toggle:checked~.mobile-overlay {
    display: block;
}

@media (max-width: 1024px) {
    .mobile-toggle-btn {
        display: flex;
    }

    .content-area {
        padding: 20px;
    }

    .page-section {
        padding: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .projects-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .custom-resume {
        padding: 20px;
    }

    .resume-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ========================= */
/* RESPONSIVE ADJUSTMENTS */
/* ========================= */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-container {
        border-radius: 15px;
    }

    .content-area {
        padding: 15px;
        gap: 30px;
    }

    .page-section {
        padding: 15px;
    }

    .home-text h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .floating-social {
        display: none;
    }

    .mobile-toggle-btn {
        top: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ========================= */
/* ANIMATIONS */
/* ========================= */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.timeline-item,
.skill-category,
.project-highlight,
.achievement-item {
    opacity: 0;
}

/* Form Loading State */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}