@import "tailwindcss";

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-text {
    font-family: Impact, Charcoal, sans-serif;
    font-size: 5rem;
    color: gold;
    letter-spacing: 5px;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px gold, 0 0 20px gold;
    }

    to {
        text-shadow: 0 0 20px gold, 0 0 30px #ffdb4d, 0 0 40px #ffdb4d;
    }
}

/*scrollbar */
/* Define the track style */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-thumb {
    background-color: #9e9e9e;
    border-radius: 6px;
}

body::-webkit-scrollbar-track {
    background-color: #000000;
}

body::-webkit-scrollbar-corner {
    background-color: #000000;
}

html {
    scroll-behavior: smooth;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/*scrollbar */

/*cursor */
body {
    margin: 0;
    overflow-x: hidden;
    cursor: none !important;
    /* Force hide default cursor */
}

.cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    width: 100%;
    height: 100%;
}

.cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: gold;
    border-radius: 50%;
    mix-blend-mode: difference;
    /* Better visibility on all backgrounds */
    animation: pulse 1s infinite alternate;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    /* Start hidden */
    transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.trail {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 3px solid gold;
    border-radius: 50%;
    mix-blend-mode: difference;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: fadeOut 2s infinite ease-out;
    transition: opacity 0.3s ease;
}

@keyframes fadeOut {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px gold, 0 0 10px gold;
    }

    100% {
        box-shadow: 0 0 10px gold, 0 0 20px rgba(255, 215, 0, 0.7);
    }
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-container {
        display: none;
    }

    body {
        cursor: auto !important;
    }
}

/*cursor */
/*navbar*/
nav {
    background: rgba(0, 0, 0, 0.564);
    text-align: right;
    padding: 20px;
    margin: 0;
    height: 55px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all ease-in-out .3s;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.41);
}

.navbutton {

    font-family: Georgia, serif;
    letter-spacing: 2px;
    word-spacing: 2px;
    font-weight: normal;
    text-decoration: none;
    font-style: italic;
    font-variant: small-caps;
    text-transform: lowercase;
    color: #000000;
    padding: 8px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.364);
    background-color: #ffffff;
    transition: all ease-in-out .4s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.navbutton:hover {
    border: 2px solid gold;
    background-color: #000000;
    color: gold;
}

.navbar h3 {
    color: white;
    font-family: Impact, Charcoal, sans-serif;
    text-shadow: 0 0 15px black;
    letter-spacing: 2px;
    word-spacing: 2px;
    font-weight: normal;
    text-decoration: none;
    font-style: normal;
    font-variant: small-caps;
    text-transform: lowercase;
    margin: 0;
    font-size: 24px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* Style for the <a> tag with navbutton class */
.nav-links a.navbutton {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav {
        padding: 15px;
        height: 60px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        top: 0;
        transform: none;
        right: 0;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 0;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        gap: 20px;
        display: none;
        /* Start hidden */
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        display: flex;
        /* Show when active */
    }

    .navbutton {
        margin: 0;
        width: 80%;
        max-width: 300px;
        text-align: center;
        padding: 15px 20px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .navbar h3 {
        position: static;
        transform: none;
        margin: 0;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbutton {
        padding: 6px 12px;
        font-size: 13px;
        margin: 0 3px;
    }

    .navbar h3 {
        font-size: 22px;
    }
}

/*home*/
#home {
    background-image: url(../imgs/heroBG.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Background flourish */
#home::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.home-container {
    max-width: 1100px;
    width: 100%;
    z-index: 1;
}

.home-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.home-left {
    flex: 1;
    display: flex;
    justify-content: center;
}

.home-profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    transition: all 0.5s ease;
}

.home-profile-img:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: gold;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.4);
}

.home-right {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-intro {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    color: gold;
    margin-bottom: 0;
    font-weight: 500;
}

.home_h1_card {
    display: flex;
    flex-direction: column;
    font-family: Impact, Charcoal, sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: white;
    margin: 10px 0;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}

.namechange {
    text-shadow: 4px 4px 5px rgba(184, 134, 11, 0.8);
    transition: all 0.3s ease;
}

.namechange:hover {
    color: gold;
    text-shadow: 2px 2px 10px rgba(255, 215, 0, 0.5);
    cursor: pointer;
}

.home-role {
    font-family: "Lucida Console", Monaco, monospace;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.home-buttons {
    display: flex;
    gap: 20px;
}

.home-btn {
    padding: 12px 35px;
    border-radius: 50px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: gold;
    color: black;
    border: 2px solid gold;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.primary-btn:hover {
    background: transparent;
    color: gold;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    background: white;
    color: black;
    border-color: white;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

@media (max-width: 968px) {
    .home-card {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        gap: 30px;
    }

    .home-profile-img {
        width: 200px;
        height: 200px;
    }

    .home-right {
        align-items: center;
    }

    .home_h1_card {
        font-size: 3.5rem;
        align-items: center;
    }

    .home-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .home-btn {
        width: 100%;
    }
}

/* home */

/*aboutme*/
#aboutme {
    background-image: linear-gradient(rgba(0, 0, 0, 0.966), rgba(74, 74, 74, 0.56));
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Background elements for depth */
#aboutme::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.aboutme-container {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.aboutme-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.aboutme-card {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../imgs/aboutmeBG.gif);
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    width: 100%;
}

.aboutme-header {
    font-family: 'Segoe UI', sans-serif;
    font-size: 3rem;
    color: gold;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.aboutme-text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-weight: 400;
    text-align: justify;
    padding: 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.hyperlinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.aboutme_button {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, gold, #ffdb4d);
    color: black;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.aboutme_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    background: white;
    color: black;
}



.hyperlinks {
    margin-top: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    color: black;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.social-icon:hover {
    background: gold;
    color: black;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .aboutme-content {
        flex-direction: column;
    }

    .aboutme_picture {
        max-width: 300px;
        margin: 0 auto;
    }

    .aboutme_info {
        font-size: 14px;
        letter-spacing: 1px;
        padding: 15px;
    }
}

/*aboutme*/

/*cv - Fixed Tools Section*/
#cv {
    background-image: url(https://i.pinimg.com/originals/fd/23/0c/fd230ce11f6d01c535ef461aeccd30ba.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

.tools-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.tools-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.tools-title {
    text-align: center;
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: gold;
    margin-bottom: 10px;
}

.tools-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 40px;
}

.tools-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.category-header h3 {
    color: white;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    font-size: 1.3rem;
}

.category-creative .category-icon {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.category-frontend .category-icon {
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
}

.category-backend .category-icon {
    background: rgba(95, 39, 205, 0.1);
    color: #5f27cd;
}

.category-mobile .category-icon {
    background: rgba(254, 202, 87, 0.1);
    color: #feca57;
}

.category-skills {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.08);
}

.skill-icon-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.skill-icon {
    color: gold;
    font-size: 18px;
    width: 25px;
}

.skill-name {
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 500;
}

.skill-tools {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-left: 35px;
    font-style: italic;
}

.skill-level {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.level-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.level-dot.active {
    background: gold;
}

.tools-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.beginner {
    background: #ff6b6b;
}

.legend-dot.intermediate {
    background: #4ecdc4;
}

.legend-dot.advanced {
    background: #feca57;
}

.tools-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', sans-serif;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-note i {
    color: gold;
}

@media (max-width: 768px) {
    .tools-categories-grid {
        grid-template-columns: 1fr;
    }

    .tools-legend {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .tools-container {
        padding: 25px;
    }
}

/*cv*/

/*projects*/
#projects {
    background-image: url(../imgs/projectsBG.jpg);
    background-size: cover;
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects {
    max-width: 1400px;
    width: 100%;
}

.project_h1 {
    text-align: center;
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: gold;
    text-shadow: 3px 3px 4px black;
    font-weight: 700;
    font-style: italic;
    font-variant: small-caps;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.project_h1:hover {
    color: #000000;
    text-shadow: 3px 3px 3px gold;
}

.project_gifs {
    width: 80px;
    height: auto;
}

.project1,
.project2,
.project3 {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
}

.project_project1_img,
.project_project2_img,
.project_project3_img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.projectsleft,
.projectsright {
    flex: 1;
    padding: 20px;
}

.projectsright {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid gold;
}

.project_info {
    text-align: center;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    margin: 10px 0;
    font-size: 0.9rem;
}

.project_info_h1 {
    color: gold;
    font-family: Impact, Charcoal, sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.project_info2 {
    color: white;
    font-family: "Lucida Console", Monaco, monospace;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.project_GITbutton {
    display: inline-block;
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.project_GITbutton:hover {
    background: black;
    color: gold;
    border-color: gold;
}

@media (max-width: 768px) {

    .project1,
    .project2,
    .project3 {
        flex-direction: column;
    }

    .project2 .projectsright {
        order: 2;
    }

    .project2 .projectsleft {
        order: 1;
    }

    .project_gifs {
        width: 50px;
    }
}

/*projects*/

/*contact*/
#contact {
    background-image: url(../imgs/footerBG.jpg);
    background-attachment: fixed;
    background-size: cover;
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact {
    max-width: 1200px;
    width: 100%;
    text-align: left;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid gold;
}

.contact_title {
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: gold;
    text-shadow: 3px 3px 4px black;
    margin-bottom: 10px;
}

.contact_subtitle {
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 30px;
}

.contact h3 {
    color: white;
    font-family: Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    text-align: left;
}

.contact_p {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffff69;
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
    font-size: 1.1rem;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.contact_p:hover {
    color: white;
    transform: translateX(5px);
}

.contact_icons {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: gold;
    font-size: 16px;
}

.contact_p:hover .contact_icons {
    box-shadow: 0 0 15px gold;
    transform: rotate(360deg);
}

.social-links.mt-3 {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .contact {
        padding: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact_p {
        font-size: 1rem;
    }
}

/*contact*/

.content-section {
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

@media (max-width: 968px) {
    .aboutme-content {
        flex-direction: column;
        text-align: center;
    }

    .aboutmeleft {
        width: 100%;
        margin-bottom: 40px;
    }

    .aboutmeright {
        width: 100%;
    }

    .aboutme-card {
        padding: 30px 20px;
    }

    .aboutme_picture {
        max-width: 300px;
        margin: 0 auto;
    }

    .aboutme-header {
        font-size: 2rem;
        text-align: center;
    }

    .aboutme-text {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Certificates Carousel */
#certificates {
    background: linear-gradient(to bottom, #ffffff, #000000);
    position: relative;
    overflow: hidden;
}

.certificates-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.carousel-container {
    position: relative;
    padding: 0 50px;
    margin-top: 40px;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    padding: 20px 0;
    margin: 0;
    list-style: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    /* Default 1 per view on mobile */
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 50%;
    }

    /* 2 per view on tablet */
}

@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 33.333%;
    }

    /* 3 per view on desktop */
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 250px;
    /* Limit height to keep them uniform */
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    /* Slight background for transparency */
}

.carousel-slide img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    border-color: gold;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: gold;
    border: 1px solid gold;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: gold;
    color: black;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: gold;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}