/* ===== Project base variables and codes ===== */

@import url('https://fonts.googleapis.com/css2?family=BBH+Bogle&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

@import "tailwindcss";

:root {
    --bg-dark: #1b1b1e;
    --bg-darker: #0a0a0a;
    --bg-light-dark: #191a1b;
    --bg-blue-dark: #172630;
    --text-white: #fbfffe;
    --text-gray2: #6d676e;
    --text-red: #96031a;
    --border-blue: #343E44;
    --border-light-red: #362526;
    --border-red: #96031a;
    --header-height: 70px;
    --header-height-scrolled: 60px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    color: var(--text-white);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
}
h1, h2, h3, h4 {
    font-family: "BBH Bogle", sans-serif;
    font-weight: 600;
}

h2{
    color: var(--text-gray2);
}
/* ===== HEADER ===== */
.header {
    padding: 0 5%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(20, 20, 20, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 169, 127, 0.1);
}

.header.scrolled {
    height: var(--header-height-scrolled);
    background-color: rgba(20, 20, 20, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-logo {
    position: absolute;
    left: 5%;
    font-family: "BBH Bogle", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-red);
    letter-spacing: 2px;
    cursor: pointer;
    z-index: 1001;
}
.menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    cursor: pointer;
    position: relative;
    padding: 8px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-white);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.menu li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-red), transparent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}
.menu li:hover::after,
.menu li.active::after {
    width: 100%;
}

.menu li:hover,
.menu li.active {
    color: var(--text-red);
}
.menu li.active::after {
    background: var(--text-red);
}
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--text-red);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: var(--text-red);
}
/* ===== Home page ===== */
.base {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--header-height) + 30px) 5% 50px;
    gap: 40px;
    background-color: var(--bg-dark);
}
.texts-container {
    flex: 1 1 400px;
    max-width: 600px;
}
.small-box {
    width: 100%;
    font-size: clamp(2.2rem, 6vw, 3.7rem);
    line-height: 1.2;
    margin-bottom: 15px;
}
.back {
    width: 100%;
    font-size: clamp(1.3rem, 4vw, 2.1rem);
    color: var(--text-red);
    margin-bottom: 30px;
}
.img {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}
.img img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.svg {
    width: 100%;
    position: relative;
    margin-top: 20px;
    min-height: 100px;
}
.svg-down {
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(60px, 15vw, 100px);
    height: auto;
}
.svg-down svg {
    width: 100%;
    height: auto;
}
/* ===== ABOUT ME ===== */
.base-page2 {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-light-dark);
    padding: 80px 5% 60px;
}
.about-me {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    margin-bottom: 40px;
}
.about-me-text {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}
.about-me-text > p {
    flex: 1 1 100%;
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    text-align: justify;
}
.Middle {
    flex: 0 0 280px;
}
.sidbar {
    width: 100%;
    max-width: 280px;
    background-color: #303234;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--text-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.sidebar-item {
    margin-bottom: 12px;
    color: #e0e0e0;
    line-height: 1.8;
}
.sidebar-label {
    color: var(--text-red);
    font-weight: 600;
    margin-right: 8px;
}
.logos {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(30px, 6vw, 60px);
    margin: 40px 0 20px;
}
.tech-logo {
    width: clamp(100px, 18vw, 140px);
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(184, 127, 127, 0.2));
    opacity: 0.8;
    transition: all 0.4s ease;
}
.tech-logo:hover {
    opacity: 1;
    transform: translateY(-10px) scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(255, 255, 255, 0.237));
}
.know-me-better {
    flex: 1 1 100%;
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    color: var(--text-red);
    margin: 30px 0 20px;
}
.link-services {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-top: 40px;
}
.link-services > a {
    flex: 1 1 250px;
    max-width: 300px;
    padding: 40px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.link-services-WebDevelopment {
    border: 2px solid var(--border-blue);
}
.link-services-UserExperience {
    border: 2px solid var(--border-light-red);
}
.link-services-MyResume {
    border: 2px solid var(--border-red);
}
.link-services > a > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    z-index: 2;
}
.service-icon {
    width: 48px;
    height: 48px;
    transition: all 0.4s ease;
}
.link-services-WebDevelopment .service-icon {
    color: #60a5fa;
}
.link-services-UserExperience .service-icon {
    color: #f87171;
}
.link-services-MyResume .service-icon {
    color: var(--text-red);
}
.link-services > a span {
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.link-services > a:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    color: white;
}
.link-services > a:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    stroke: white;
}
.link-services > a:hover span {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
/* ===== Page Three - Skills ===== */
.base-page3 {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #191a1b 0%, #1f2c33 100%);
    padding: 80px 5% 60px;
}
.web-development-titr {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 40px;
    word-break: break-word;
}
.skills-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.skills-intro {
    text-align: center;
    margin-bottom: 50px;
}
.skills-intro h2 {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    color: var(--text-red);
    margin-bottom: 20px;
    word-break: break-word;
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 169, 127, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.4s ease;
}
.skill-card:hover {
    border-color: rgba(184, 169, 127, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 60, 60, 0.05);
}
.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.skill-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(-text-gray);
}
.skill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.skill-percent {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-red);
    font-family: "BBH Bogle", sans-serif;
}
.progress-container {
    height: 8px;
    background: rgba(172, 172, 172, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}
.progress-bar {
    height: 100%;
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
}
.skill-level {
    font-size: 0.9rem;
    color: #8a8a8a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.skills-legend {
    background: rgba(32, 53, 66, 0.5);
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(184, 169, 127, 0.1);
}
.legend-title {
    color: var(--text-red);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}
.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
/* ===== footer ===== */
.site-footer {
    background-color: var(--bg-dark);
    padding: 80px 5% 40px;
    border-top: 1px solid rgba(184, 169, 127, 0.1);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-title {
    text-align: center;
    margin-bottom: 60px;
}
.footer-title-text {
    font-family: "BBH Bogle", sans-serif;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 400;
    opacity: 0.3;
    color: var(--text-white);
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}
.footer-title-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-red), transparent);
}
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(184, 169, 127, 0.05);
    transition: all 0.4s ease;
}
.contact-item:hover {
    border-color: rgba(255, 0, 0, 0.2);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.contact-icon {
    width: 28px;
    height: 28px;
    stroke: var(--text-white);
    flex-shrink: 0;
}
.contact-details h3 {
    color: var(--text-red);
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.contact-link {
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    word-break: break-all;
    font-size: 0.95rem;
}
.contact-link:hover {
    color: var(--text-red);
    transform: translateX(5px);
}
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 50px 0;
}
.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 169, 127, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}
.social-link:hover {
    background: rgba(184, 169, 127, 0.2);
    transform: translateY(-5px);
}
.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-red);
    transition: transform 0.3s ease;
}
.social-link:hover .social-icon {
    transform: scale(1.2);
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(184, 169, 127, 0.15);
    border: 1px solid rgba(184, 169, 127, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    backdrop-filter: blur(5px);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: rgba(184, 169, 127, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(184, 169, 127, 0.3);
}
.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-red);
}
/* ===== Responsive website design ===== */

/*===== Small mobile (below 480px) =====*/
@media screen and (max-width: 480px) {
    .header {
        padding: 0 4%;
    }
    
    .header-logo {
        font-size: 1.2rem;
    }
    
    .base {
        padding-top: 100px;
        text-align: center;
    }
    
    .small-box {
        font-size: 1.8rem;
    }
    
    .back {
        font-size: 1.2rem;
    }
    
    .img {
        max-width: 90%;
    }
    
    .svg-down {
        right: -5px;
        bottom: -20px;
    }
    
    .about-me {
        font-size: 2rem;
    }
    
    .sidbar {
        max-width: 100%;
    }
    
    .tech-logo {
        width: 80px;
    }
    
    .link-services > a {
        max-width: 100%;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-details {
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== Mobile (480px to 768px) =====*/
@media screen and (max-width: 768px) {
    .header {
        justify-content: space-between;
    }
    
    .header-logo {
        position: static;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 30px;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(184, 169, 127, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .header.scrolled .menu {
        top: var(--header-height-scrolled);
    }
    
    .menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu li {
        font-size: 1.1rem;
        padding: 12px 0;
        white-space: normal;
    }
    
    .base {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .texts-container {
        text-align: center;
    }
    
    .back {
        text-align: center;
    }
    
    .img {
        margin: 0 auto;
        max-width: 80%;
    }
    
    .about-me-text {
        flex-direction: column;
        align-items: center;
    }
    
    .Middle {
        flex: 1 1 100%;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .sidbar {
        margin: 0 auto;
    }
    
    .logos {
        margin: 30px 0;
    }
    
    .link-services {
        gap: 20px;
    }
    
    .link-services > a {
        max-width: 350px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* ===== Laptop (1024px to 1400px) ===== */
@media screen and (min-width: 1024px) and (max-width: 1400px) {
    .base-page2 {
        padding: 80px 5% 60px;
    }
    
    .about-me-text {
        display: grid;
        grid-template-columns: 1fr 280px;
        grid-template-rows: auto auto auto;
        gap: 30px 40px;
        align-items: start;
    }
    
    .about-me-text > p {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        padding-right: 20px;
        max-width: 100%;
    }
    
    .Middle {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        width: 100%;
    }
    
    .sidbar {
        max-width: 100%;
    }
    
    .logos {
        grid-column: 1 / 3;
        grid-row: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 50px;
        margin: 20px 0 10px;
    }
    
    .tech-logo {
        width: 120px;
    }
    
    .know-me-better {
        grid-column: 1 / 3;
        grid-row: 3;
        text-align: center;
        margin: 20px 0 30px;
    }
    
    .link-services {
        grid-column: 1 / 3;
        grid-row: 4;
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 20px;
    }
    
    .link-services > a {
        flex: 0 1 280px;
        padding: 35px 20px;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*===== Small laptop (1024px to 1200px) ===== */
@media screen and (min-width: 1024px) and (max-width: 1200px) {
    .about-me-text {
        gap: 25px;
    }
    
    .about-me-text > p {
        padding-right: 15px;
    }
    
    .logos {
        gap: 40px;
    }
    
    .tech-logo {
        width: 110px;
    }
    
    .link-services > a {
        flex: 0 1 260px;
        padding: 30px 15px;
    }
}

/* ===== Large laptop (1200px to 1400px) ===== */
@media screen and (min-width: 1201px) and (max-width: 1400px) {
    .about-me-text {
        gap: 50px;
    }
    
    .logos {
        gap: 70px;
    }
    
    .tech-logo {
        width: 130px;
    }
}

/*===== Tablet (768px to 1024px) =====*/
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .base {
        gap: 30px;
    }
    
    .texts-container {
        flex: 1 1 350px;
    }
    
    .small-box {
        font-size: 2.5rem;
    }
    
    .img {
        flex: 1 1 250px;
    }
    
    .logos {
        gap: 40px;
    }
    
    .tech-logo {
        width: 110px;
    }
    
    .link-services {
        gap: 20px;
    }
    
    .link-services > a {
        padding: 35px 15px;
    }
    
    .service-icon {
        width: 42px;
        height: 42px;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*===== Large desktop (above 1400px) ===== */
@media screen and (min-width: 1400px) {
    .base,
    .about-me-text,
    .skills-section,
    .footer-container {
        max-width: 1300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .base {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ===== Animations ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== Auxiliary classes ===== */
.container1 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#skills {
    scroll-margin-top: 80px;
}

.menu li {
    animation: slideDown 0.6s ease-out forwards;
    opacity: 0;
}

.menu li:nth-child(1) { animation-delay: 0.1s; }
.menu li:nth-child(2) { animation-delay: 0.2s; }
.menu li:nth-child(3) { animation-delay: 0.3s; }
.menu li:nth-child(4) { animation-delay: 0.4s; }

.link-services > a {
    animation: slideUpFade 0.8s ease-out forwards;
    opacity: 0;
}

.link-services-WebDevelopment { animation-delay: 0.2s; }
.link-services-UserExperience { animation-delay: 0.4s; }
.link-services-MyResume { animation-delay: 0.6s; }

.skill-card {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.contact-item {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }