      * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --transition: all 0.3s ease;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --heading-color: #2c3e50;
    --border-color: #e0e0e0;
}

/* Dark theme variables */
[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --text-color: #e0e0e0;
    --card-bg: #16213e;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --heading-color: #e0e0e0;
    --light-gray: #2a2a4a;
    --border-color: #2a2a4a;
    --secondary-color: #8bb8e8;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(128, 128, 128, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 128, 128, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--heading-color);
    margin-top: 0;
    transition: color 0.3s ease;
}

p, a, li, button, input, textarea, select, label, span {
    font-family: 'DM Sans', sans-serif;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .header {
    background-color: rgba(26, 26, 46, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 0.5rem;
}

.nav-links li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

[data-theme="dark"] .nav-links li a {
    color: #e0e0e0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
}

/* Theme Toggle Styles */
.theme-toggle-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.theme-switch {
    --toggle-size: 24px;
    --container-width: 4.5em;
    --container-height: 2em;
    --container-radius: 6.25em;
    --container-light-bg: #3D7EAE;
    --container-night-bg: #1D1F2C;
    --circle-container-diameter: 2.7em;
    --sun-moon-diameter: 1.7em;
    --sun-bg: #ECCA2F;
    --moon-bg: #C4C9D1;
    --spot-color: #959DB1;
    --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
    --stars-color: #fff;
    --clouds-color: #F3FDFF;
    --back-clouds-color: #AACADF;
    --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
    --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
}

.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: var(--toggle-size);
}

.theme-switch__container {
    width: var(--container-width);
    height: var(--container-height);
    background-color: var(--container-light-bg);
    border-radius: var(--container-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
    transition: var(--transition);
    position: relative;
}

.theme-switch__container::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
    border-radius: var(--container-radius);
}

.theme-switch__checkbox {
    display: none;
}

.theme-switch__circle-container {
    width: var(--circle-container-diameter);
    height: var(--circle-container-diameter);
    background-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    left: var(--circle-container-offset);
    top: var(--circle-container-offset);
    border-radius: var(--container-radius);
    box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
    display: flex;
    transition: var(--circle-transition);
    pointer-events: none;
}

.theme-switch__sun-moon-container {
    pointer-events: auto;
    position: relative;
    z-index: 2;
    width: var(--sun-moon-diameter);
    height: var(--sun-moon-diameter);
    margin: auto;
    border-radius: var(--container-radius);
    background-color: var(--sun-bg);
    box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
    filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
    overflow: hidden;
    transition: var(--transition);
}

.theme-switch__moon {
    transform: translateX(100%);
    width: 100%;
    height: 100%;
    background-color: var(--moon-bg);
    border-radius: inherit;
    box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
    transition: var(--transition);
    position: relative;
}

.theme-switch__spot {
    position: absolute;
    top: 0.6em;
    left: 0.25em;
    width: 0.6em;
    height: 0.6em;
    border-radius: var(--container-radius);
    background-color: var(--spot-color);
    box-shadow: 0em 0.025em 0.05em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
    width: 0.3em;
    height: 0.3em;
    top: 0.75em;
    left: 1.1em;
}

.theme-switch__spot:nth-of-type(3) {
    width: 0.2em;
    height: 0.2em;
    top: 0.25em;
    left: 0.65em;
}

.theme-switch__clouds {
    width: 1em;
    height: 1em;
    background-color: var(--clouds-color);
    border-radius: var(--container-radius);
    position: absolute;
    bottom: -0.5em;
    left: 0.25em;
    box-shadow: 0.75em 0.25em var(--clouds-color), -0.25em -0.25em var(--back-clouds-color), 1.15em 0.3em var(--clouds-color), 0.4em -0.1em var(--back-clouds-color), 1.75em 0 var(--clouds-color), 1em -0.05em var(--back-clouds-color), 2.35em 0.25em var(--clouds-color), 1.6em -0.25em var(--back-clouds-color), 2.9em -0.05em var(--clouds-color), 2.1em 0em var(--back-clouds-color), 3.6em -0.25em var(--clouds-color), 2.7em -0.35em var(--back-clouds-color), 3.7em -1.4em 0 0.35em var(--clouds-color), 3.2em -0.5em var(--back-clouds-color), 3.3em -1.7em 0 0.35em var(--back-clouds-color);
    transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
    position: absolute;
    color: var(--stars-color);
    top: -100%;
    left: 0.25em;
    width: 2.2em;
    height: auto;
    transition: var(--transition);
    pointer-events: none;
}

/* Dark mode styles */
[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --text-color: #f0f0f0;
    --light-gray: #2a2a3a;
    --primary-color: #4a90e2;
    --secondary-color: #a0c4ff;
}

[data-theme="dark"]::selection {
    background: rgba(100, 181, 246, 0.4);
}

[data-theme="dark"] .team-honesty {
    background: rgba(30, 30, 50, 0.95);
    color: #f0f0f0;
}

[data-theme="dark"] .honesty-content p {
    color: #e0e0e0;
}

[data-theme="dark"] .team-honesty h4 {
    color: #ffffff;
}

/* Theme toggle states */
.theme-switch__checkbox:checked + .theme-switch__container {
    background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
    left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
    transform: translate(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
    bottom: -3.25em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
    top: 50%;
    transform: translateY(-50%);
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 0;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-logo {
    flex: 0 0 45%;
    padding-right: 5%;
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: auto;
}

.team-name {
    margin-top: 2rem;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s;
}

body.loaded .team-name {
    opacity: 1;
    transform: translateY(0);
}

.team-name span {
    display: inline-block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #ec4242;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    line-height: 1.2;
    margin: 0 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-name span:first-child {
    color: var(--primary-color);
}

.team-name span:last-child {
    color: #d43d3d;
    position: relative;
}

.team-name span:last-child::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.hero-logo:hover .team-name span:last-child::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Tech Stack Section */
.tech-stack {
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    transition: color 0.3s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0.9;
    transition: color 0.3s ease;
}

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

.tech-category {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-category-title {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.tech-category-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-item:hover i,
.tech-item:hover span {
    color: white;
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tech-item span {
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
}

/* Màu sắc đặc trưng cho từng công nghệ */
.tech-item.html5 i { color: #e34f26; }
.tech-item.css3 i { color: #1572b6; }
.tech-item.javascript i { color: #f7df1e; }
.tech-item.react i { color: #61dafb; }
.tech-item.nodejs i { color: #68a063; }
.tech-item.python i { color: #3776ab; }
.tech-item.php i { color: #777bb4; }
.tech-item.mysql i { color: #4479a1; }
.tech-item.mongodb i { color: #47a248; }
.tech-item.git i { color: #f05032; }

[data-theme="dark"] .tech-item i {
    opacity: 0.9;
}

.tech-item:hover i {
    transform: scale(1.1);
}
.tech-item:nth-child(1) i { color: #e34f26; } /* HTML5 */
.tech-item:nth-child(2) i { color: #2965f1; } /* CSS3 */
.tech-item:nth-child(3) i { color: #f7df1e; } /* JavaScript */
.tech-item:nth-child(4) i { color: #61dafb; } /* React */
.tech-item:nth-child(5) i { color: #68a063; } /* Node.js */
.tech-item:nth-child(6) i { color: #005c83; } /* MySQL */
.tech-item:nth-child(7) i { color: #9b4f96; } /* C# */
.tech-item:nth-child(8) i { color: #cc2927; } /* SQL Server */

/* Team Honesty Section */
.team-honesty {
    background: var(--card-bg);
    padding: 3rem 0;
    margin: 0;
    width: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.honesty-container {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.team-honesty h4 {
    flex: 0 0 250px;
    font-size: 1.5rem;
    color: var(--heading-color);
    margin: 0;
    padding: 0;
}

.honesty-content {
    flex: 1;
    padding: 0;
}

.honesty-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    font-style: italic;
    padding: 0;
    border-left: none;
}

/* Responsive */
@media (max-width: 768px) {
    .honesty-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .team-honesty h4 {
        flex: 0 0 auto;
        width: 100%;
        padding-bottom: 1rem;
    }
    
    .honesty-content p {
        padding-left: 1rem;
    }
}

/* Team Passion Section */
.team-passion {
    margin: 3rem 0 4rem;
    text-align: center;
}

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

.passion-content h3 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.passion-content h3:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #4a90e2, #36d1dc);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.passion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.passion-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Thêm đổ bóng nhẹ */
}

.passion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.passion-icon {
    font-size: 2.5rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4a90e2, #36d1dc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.passion-item h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.passion-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.team-honesty {
    max-width: 1800px;
    margin: 4rem auto 0;
    padding: 2rem;
    background: var(--card-bg);
    border-left: 4px solid #4a90e2;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Thêm đổ bóng nhẹ */
}

.team-honesty:before {
    content: '"\201C"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 6rem;
    color: rgba(74, 144, 226, 0.1);
    font-family: serif;
    line-height: 1;
    z-index: 0;
}

.team-honesty h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.team-honesty p {
    color: var(--text-color);
    font-style: italic;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .passion-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .passion-item {
        margin-bottom: 1.5rem;
    }
    
    .team-honesty {
        margin: 2rem 1rem 0;
        padding: 1.5rem;
    }
}

/* Team Section */
.team-section {
    padding: 6rem 5%;
    position: relative;
    background: transparent;
}

.org-chart {
    margin-top: 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-level {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.org-node {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin: 0 1rem;
    width: 280px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.org-node.leader {
    margin-bottom: 3rem;
    border: 2px solid #f59e0b;
}

.org-node.leader .node-avatar {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.node-content {
    text-align: center;
}

.node-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    background: #f0f9ff;
    color: #0ea5e9;
    position: relative;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.node-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.node-avatar i {
    position: relative;
    z-index: 2;
}

/* Leader specific */
.org-node.leader .node-avatar i {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #f59e0b;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    border: 2px solid white;
}

/* Position text */
.position {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Member skills */
.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.skill {
    background: #f1f5f9;
    color: rgb(100, 100, 100);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Social links */
.member-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
}

.social-link {
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.social-link i {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover i {
    color: white;
    transform: scale(1.1);
}

/* Specific colors for social icons */
.social-link[href*="github"]:hover {
    background: #333;
}

.social-link[href*="linkedin"]:hover {
    background: #0077b5;
}

.social-link[href*="mailto:"]:hover,
.social-link[href*="email"]:hover,
.social-link[href*="gmail"]:hover {
    background: #d44638;
}

.social-link[href*="facebook"]:hover {
    background: #1877f2;
}

.social-link[href*="twitter"]:hover {
    background: #1da1f2;
}

.social-link[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Dark mode adjustments */
[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Team members list */
.team-members {
    margin-top: 1.5rem;
}

.team-member {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
    border: 2px solid #f1f5f9;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--heading-color);
}

.member-info .position {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: var(--text-color);
}

.member-info .member-skills {
    justify-content: flex-start;
    margin: 0;
}

.member-info .skill {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
}

.org-node h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.org-node p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.team-members {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: left;
    font-size: 0.9rem;
}

.team-members li {
    padding: 0.35rem 0;
    color: var(--text-color);
    border-bottom: 1px solid #f1f5f9;
}

.team-members li:last-child {
    border-bottom: none;
}

/* Team specific styles */
.team.frontend .node-avatar {
    background: #e0f2fe;
    color: #0ea5e9;
}

.team.backend .node-avatar {
    background: #dcfce7;
    color: #10b981;
}

.team.design .node-avatar {
    background: #f3e8ff;
    color: #8b5cf6;
}

/* Connector lines */
.org-connector {
    position: relative;
    width: 2px;
    height: 40px;
    background: #cbd5e1;
    margin: 0 auto;
    z-index: 1;
}

.org-connector::before,
.org-connector::after {
    content: '';
    position: absolute;
    background: #cbd5e1;
}

.org-connector::before {
    width: 2px;
    height: 20px;
    top: 0;
    left: 0;
}

/* Horizontal lines for teams */
.teams {
    position: relative;
    padding-top: 2rem;
}

.teams::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: #cbd5e1;
}

.team {
    position: relative;
    margin-top: 2rem;
}

.team::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    width: 2px;
    height: 2rem;
    background: #cbd5e1;
}

/* Hover effects */
.org-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 1024px) {
    .org-level.teams {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .org-node {
        width: calc(33.333% - 2rem);
        margin: 1rem;
    }
    
    .teams::before {
        display: none;
    }
    
    .team::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .org-node {
        width: 100%;
        max-width: 300px;
        margin: 1rem 0;
    }
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background: transparent;
}

.projects-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.projects-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

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

.project-card {
    min-width: 350px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-project:hover {
    background: #3a7bd5;
    transform: translateY(-2px);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin: 0 0 10px;
    color: var(--heading-color);
    font-size: 1.25rem;
}

.project-info p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.project-tags span {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

[data-theme="dark"] .project-tags span {
    background: rgba(255, 255, 255, 0.1);
}

.project-tags span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: var(--primary-color);
    color: white;
}

.slider-nav.prev {
    left: -20px;
}

.slider-nav.next {
    right: -20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Lightbox Styles */
.lightbox-slider {
    position: relative;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar for Webkit browsers */
.lightbox-slider::-webkit-scrollbar {
    width: 8px;
}

.lightbox-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.lightbox-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.lightbox-slider::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
    opacity: 0.8;
}

.project-images {
    display: none;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.project-images.active {
    display: flex;
}

.project-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-slider {
        max-height: 70vh;
    }
    
    .project-images {
        gap: 1.5rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .project-images img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-images img:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    background: var(--card-bg);
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.lightbox-slider {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

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

.project-images {
    display: none;
    width: 100%;
    max-width: 100%;
    transition: transform 0.5s ease;
    text-align: center;
}

.project-images.active {
    display: block;
    height: 100%;
}

.project-images img {
    max-width: 100%;
    max-height: none;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: none;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: grab;
}

.project-images img:active {
    cursor: grabbing;
}

.project-images img.active {
    display: block;
    margin: 0 auto;
}

.lightbox-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.lightbox-nav {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 15px;
    color: #495057;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    color: var(--primary-color);
}

.lightbox-caption {
    text-align: center;
}

.lightbox-caption h3 {
    margin: 0 0 5px;
    color: var(--heading-color);
    font-size: 1.2rem;
}

.lightbox-caption p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    position: relative;
    background-color: #ffffff00;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(54, 209, 220, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #36d1dc);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

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

.contact-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4a90e2, #36d1dc);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    position: relative;
    z-index: 2;
}

.contact-card p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Specific card colors */
.contact-card.facebook .contact-icon {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.3);
}

.contact-card.github .contact-icon {
    background: linear-gradient(135deg, #333, #6e5494);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-card.gmail .contact-icon {
    background: linear-gradient(135deg, #d44638, #e57368);
    box-shadow: 0 5px 15px rgba(212, 70, 56, 0.3);
}

.contact-card.phone .contact-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.contact-card.zalo .contact-icon {
    background: linear-gradient(135deg, #0068ff, #00a3ff);
    box-shadow: 0 5px 15px rgba(0, 104, 255, 0.3);
}

.contact-card.address .contact-icon {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

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

.contact-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

/* Contact card colors */
.contact-card.facebook .contact-icon { background: #3b5998; }
.contact-card.github .contact-icon { background: #333; }
.contact-card.gmail .contact-icon { background: #db4a39; }
.contact-card.phone .contact-icon { background: #25D366; }
.contact-card.zalo .contact-icon { background: #0068FF; }
.contact-card.address .contact-icon { background: #6c757d; }

.contact-card h3 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.contact-card p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.95rem;
}

/* Footer Section */
.footer {
    background: #121212; /* Fallback for browsers that don't support gradients */
    background: linear-gradient(
        135deg,
        #121212 25%,
        #1a1a1a 25%,
        #1a1a1a 50%,
        #121212 50%,
        #121212 75%,
        #1a1a1a 75%,
        #1a1a1a
    );
    background-size: 40px 40px;
    animation: move 4s linear infinite;
    color: #fff;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4a90e2, #36d1dc);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #4a90e2, #36d1dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-logo p {
    color: #a0aec0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #4a90e2;
    transform: translateY(-3px);
}

.footer h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #36d1dc);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-contact a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #4a90e2;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #a0aec0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-contact i {
    color: #4a90e2;
    margin-top: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #a0aec0;
}

.newsletter-form button {
    background: linear-gradient(90deg, #4a90e2, #36d1dc);
    border: none;
    color: white;
    width: 45px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #4a90e2;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.2);
}

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a90e2, #36d1dc);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #3a7bc8, #26b1c4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.navbar {
    position: relative;
    z-index: 100;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(90deg, #4a90e2, #36d1dc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    display: inline-block;
}

[data-theme="dark"] .section-title {
    background: linear-gradient(90deg, #64b5f6, #4dd0e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
}

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

.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.15);
}

.service-card.featured {
    border: 2px solid #4a90e2;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    width: 150px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    z-index: 2;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4a90e2, #36d1dc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.service-features li {
    margin-bottom: 0.7rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.service-features i {
    color: #10b981;
    margin-right: 0.7rem;
    font-size: 0.8rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, #4a90e2, #36d1dc);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #4a90e2;
    color: #4a90e2;
}

.btn-outline:hover {
    background: #4a90e2;
    color: white;
}

.cta-box {
    background: linear-gradient(135deg, #4a90e2, #36d1dc);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDQwIDQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBwYXR0ZXJuVHJhbnNmb3JtPSJyb3RhdGUoNDUpIHNjYWxlKDAuNSkiPjxyZWN0IGlkPSJwYXR0ZXJuLWJnIiB3aWR0aD0iNDAwJSIgaGVpZ2h0PSI0MDAlIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIi8+PHBhdGggZD0iTS0xLDEgbDIsLTIgTS0xLDQwIGwyLC0yIE0zOSwxIGwtMiwtMiBNNDAsNDAgbC0yLC0yIE0tMSwtMSBsNDAsNDAgTTM5LC0xIGwtNDAsNDAiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjA4KSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9wYXR0ZXNuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
    opacity: 0.2;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loading-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
}

/* From Uiverse.io by Saiyed-Tanvir */
.box {
    height: 5cm;
    width: 5cm;
    border: 5px solid #ffa600;
    box-shadow: inset 0 0 0 #ffa600;
    animation: load 2s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes load {
    0% {
        box-shadow: inset -5cm -2.5cm 0 #ffa600;
    }

    25% {
        box-shadow: inset 5cm -2.5cm 0 #ffa600;
    }

    25.01% {
        box-shadow: inset 2.5cm -5cm 0 #ffa600;
    }

    50% {
        box-shadow: inset 2.5cm 5cm 0 #ffa600;
    }

    50.01% {
        box-shadow: inset 5cm 2.5cm 0 #ffa600;
    }

    75% {
        box-shadow: inset -5cm 2.5cm 0 #ffa600;
    }

    75.01% {
        box-shadow: inset -2.5cm 5cm 0 #ffa600;
    }

    100% {
        box-shadow: inset -2.5cm -5cm 0 #ffa600;
    }
}

/* Responsive cho loading */
@media (max-width: 768px) {
    .box {
        height: 4cm;
        width: 4cm;
    }
    
    @keyframes load {
        0% {
            box-shadow: inset -4cm -2cm 0 #ffa600;
        }
        
        25% {
            box-shadow: inset 4cm -2cm 0 #ffa600;
        }
        
        25.01% {
            box-shadow: inset 2cm -4cm 0 #ffa600;
        }
        
        50% {
            box-shadow: inset 2cm 4cm 0 #ffa600;
        }
        
        50.01% {
            box-shadow: inset 4cm 2cm 0 #ffa600;
        }
        
        75% {
            box-shadow: inset -4cm 2cm 0 #ffa600;
        }
        
        75.01% {
            box-shadow: inset -2cm 4cm 0 #ffa600;
        }
        
        100% {
            box-shadow: inset -2cm -4cm 0 #ffa600;
        }
    }
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    /* Căn chỉnh chung */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    /* Header */
    .header {
        padding: 1rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 46, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s;
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: block;
    }
    
    /* Hero Section */
    .hero-logo {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0 auto !important;
        width: 100%;
        max-width: 300px;
        padding: 0 1rem;
    }
    
    .hero-logo-img {
        width: 120px;
        height: auto;
        margin: 0 auto 1rem;
    }
    
    .team-name {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 1rem auto 0 !important;
        width: 100%;
    }
    
    .team-name span {
        display: block;
        font-size: 2.5rem;
        line-height: 1;
        text-align: center;
        width: 100%;
    }
    
    .hero {
        padding: 6rem 0 4rem;
        text-align: center;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin: 1.5rem 0;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Team Section */
    .team-timeline::before {
        left: 15px;
    }
    
    .team-timeline {
        padding: 0 1rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    /* Projects Section */
    .projects-section {
        padding: 3rem 0;
    }
    
    .project-slider {
        padding: 0 1rem;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-cards {
        margin-top: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 1rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 1.5rem;
    }
    
    .footer-links,
    .footer-contact {
        margin-bottom: 2rem;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-legal span {
        display: none;
    }
    
    .footer-legal a {
        display: block;
        margin: 0.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Responsive cho tên nhóm */
@media (max-width: 992px) {
    .team-name {
        margin-top: 1.5rem;
    }
    
    .team-name span {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .team-name span {
        font-size: 2rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .team-name span {
        font-size: 1.8rem;
    }
}

.logo-shape {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.loaded .logo-shape {
    opacity: 1;
    transform: translateY(0);
}

.logo-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
   
    z-index: 2;
    overflow: hidden;
    padding: 20px;
}

.logo-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #8e44ad);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
    animation: morph 15s linear infinite;
    box-shadow: 0 0 100px rgba(74, 144, 226, 0.2);
}

.hero-logo-img {
    max-width: 80%;
    height: auto;
    z-index: 3;
    transition: transform 0.5s ease;
}

.hero-content {
    flex: 1;
    padding-left: 5%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.3s, transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
}

body.loaded .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(74, 144, 226, 0.2);
    z-index: -1;
    border-radius: 5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

body.loaded .feature {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for features */
.feature:nth-child(1) { transition-delay: 0.6s; }
.feature:nth-child(2) { transition-delay: 0.8s; }
.feature:nth-child(3) { transition-delay: 1s; }

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(20px);
}

body.loaded .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for buttons */
.btn-primary { transition-delay: 0.8s; }
.btn-secondary { transition-delay: 1s; }

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

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

.btn-secondary:hover {
    background-color: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.loaded .stat {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for stats */
.stat:nth-child(1) { transition-delay: 1s; }
.stat:nth-child(2) { transition-delay: 1.2s; }
.stat:nth-child(3) { transition-delay: 1.4s; }

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.hero-scroll:hover {
    opacity: 1;
}

.hero-scroll i {
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
    }
    50% {
        border-radius: 60% 40% 40% 60% / 60% 40% 60% 40%;
    }
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Floating animation for logo */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

/* Add pulse animation to primary button */
.btn-primary {
    animation: pulse 2s infinite;
}

/* Add floating animation to logo */
.logo-shape {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-logo {
        margin-bottom: 3rem;
        padding-right: 0;
    }
    
    .hero-content {
        padding-left: 0;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }
}

/* Keyframes */
@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

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

.nav-links li {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

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