/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Roboto+Mono:wght@400;700&display=swap');

/* Color Palette */
:root {
    --dark-navy: #0A192F;
    /* Dark background */
    --navy: #112240;
    /* Slightly lighter background for sections */
    --light-slate: #8892B0;
    /* Secondary text color */
    --lightest-slate: #CCD6F6;
    /* Primary text color */
    --green-neon: #64FFDA;
    /* Neon accent color */
    --green-neon-rgb: 100, 255, 218;
}

/* Base Styles */
body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--lightest-slate);
    background-color: var(--dark-navy);
    /* Base Dark Background */
    overflow-x: hidden;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/* Headings and Links */
section h3 {
    font-size: 2.5em;
    color: var(--green-neon);
    /* Neon Accent for Headings */
    margin-bottom: 40px;
    position: relative;
}

section h3::before {
    /* content: '01.'; */
    /* Optional section numbering for "cool ngầu" feel */
    color: var(--green-neon);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7em;
    position: absolute;
    left: -50px;
    top: 5px;
}

a {
    color: var(--green-neon);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--green-neon);
    filter: brightness(1.2);
    /* Subtle glow effect on hover */
}

/* Header */
header {
    background: var(--dark-navy);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    /* Logo should be prominent */
    transition: all 0.3s ease;
}

header .logo img:hover {
    filter: drop-shadow(0 0 5px var(--green-neon));
    /* Neon shadow on logo hover */
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 25px;
}

header nav ul li a {
    color: var(--lightest-slate);
    font-size: 0.9em;
    font-family: 'Roboto Mono', monospace;
    /* Monospace for navigation is "techy" */
}

header nav ul li a:hover {
    color: var(--green-neon);
}

.language-switcher select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--green-neon);
    background-color: var(--navy);
    color: var(--green-neon);
    cursor: pointer;
    font-size: 0.9em;
}

/* Hero Section */
.hero {
    background: var(--dark-navy);
    text-align: center;
    padding: 150px 0 100px;
    min-height: 60vh;
    /* Adding subtle background graphics for the "cool" look */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2364FFDA" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    background-size: cover;
    background-position: center top;
}

.hero h2 {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--lightest-slate);
    text-shadow: 0 0 10px rgba(var(--green-neon-rgb), 0.5);
    /* Soft Neon Glow */
}

.hero p {
    font-size: 1.2em;
    color: var(--light-slate);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.btn {
    display: inline-block;
    background: transparent;
    color: var(--green-neon);
    border: 1px solid var(--green-neon);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(var(--green-neon-rgb), 0.5);
    /* Button Glow */
}

.btn:hover {
    background: rgba(var(--green-neon-rgb), 0.1);
    box-shadow: 0 0 15px rgba(var(--green-neon-rgb), 0.8);
    /* Stronger glow on hover */
}

/* Section Styles */
section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--navy);
    /* Sections have a slightly lighter dark background */
    border-top: 1px solid rgba(var(--green-neon-rgb), 0.1);
}

.about-us,
.portfolio {
    background-color: var(--dark-navy);
    /* Alternating sections */
}

.about-us p {
    max-width: 900px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
    color: var(--light-slate);
    text-align: left;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.service-item {
    background: var(--navy);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    transition: all 0.3s ease;
    border-top: 3px solid var(--green-neon);
    /* Neon line accent */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--green-neon-rgb), 0.15);
    /* Lift and subtle glow */
}

.service-item h4 {
    color: var(--lightest-slate);
    font-size: 1.5em;
    margin-bottom: 15px;
    position: relative;
}

.service-item h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--green-neon);
    margin-top: 5px;
}

.service-item p {
    color: var(--light-slate);
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    padding: 40px 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(var(--green-neon-rgb), 0.3);
    /* The connecting line */
    z-index: 1;
}

.step-item {
    background: var(--navy);
    padding: 25px;
    border-radius: 50%;
    /* Circular step for a unique look */
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    /* Ensure steps are above the line */
    border: 2px solid var(--green-neon);
    box-shadow: 0 0 10px rgba(var(--green-neon-rgb), 0.5);
    transition: all 0.3s ease;
}

.step-item:hover {
    /* Sử dụng màu tối có sẵn, thêm hiệu ứng sáng tạo điểm nhấn */
    background: #0D2444;
    box-shadow: 0 0 15px rgba(var(--green-neon-rgb), 0.5), 0 0 0 4px var(--dark-navy);
    /* Tăng cường viền sáng */
}

.step-item span {
    display: block;
    font-size: 2em;
    color: var(--green-neon);
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
}

.step-item h4 {
    color: var(--lightest-slate);
    margin-bottom: 5px;
    font-size: 1em;
    text-transform: uppercase;
}

.step-item p {
    font-size: 0.8em;
    color: var(--light-slate);
}


/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.portfolio-item {
    background: var(--navy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: left;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--green-neon-rgb), 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    filter: brightness(0.8) grayscale(0.2);
    /* Slightly moody look */
    transition: filter 0.3s ease;
}

.portfolio-item:hover img {
    filter: brightness(1) grayscale(0);
    /* Brighten on hover */
}

.portfolio-item h4 {
    color: var(--green-neon);
    font-size: 1.3em;
    padding: 15px 20px 0;
    margin: 0;
}

.portfolio-item p {
    font-size: 0.95em;
    color: var(--light-slate);
    padding: 0 20px 20px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--navy);
}

.testimonial-item {
    background: var(--dark-navy);
    padding: 25px;
    border-left: 5px solid var(--green-neon);
    margin-bottom: 20px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 20px auto;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.testimonial-item p {
    font-style: italic;
    color: var(--lightest-slate);
    margin-bottom: 10px;
}

.testimonial-item span {
    font-weight: bold;
    color: var(--green-neon);
    display: block;
    text-align: right;
    font-family: 'Roboto Mono', monospace;
}

/* Contact Section */
.contact {
    margin-top: 160px;
    background-color: var(--dark-navy);
    color: var(--lightest-slate);
}

.contact h3 {
    color: var(--green-neon);
}

.contact p {
    font-size: 1.1em;
    color: var(--light-slate);
    margin-bottom: 30px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact form input,
.contact form textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid var(--green-neon);
    border-radius: 5px;
    font-size: 1em;
    background-color: var(--navy);
    color: var(--lightest-slate);
    font-family: 'Roboto Mono', monospace;
}

.contact form input:focus,
.contact form textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(var(--green-neon-rgb), 0.8);
}

.contact form textarea {
    resize: vertical;
}

.contact-info {
    margin-top: 40px;
    font-size: 1em;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--lightest-slate);
}

.btn.view-more {
    /* Tăng margin-top để đẩy nút xuống xa hơn so với project boxes */
    margin-top: 50px;
    /* Tăng từ 30px (mặc định) lên 50px hoặc 60px để tạo khoảng cách rõ rệt */
    margin-bottom: 20px;
    /* Thêm margin-bottom để có khoảng cách nếu cần */
    display: inline-block;
    /* Giữ thuộc tính này nếu chưa có */
}

/* Footer */
footer {
    background: var(--dark-navy);
    color: var(--light-slate);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid rgba(var(--green-neon-rgb), 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header nav ul li {
        margin: 0 10px;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .process-steps::before {
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 80%;
    }

    .step-item {
        width: 120px;
        height: 120px;
    }
}

/* --- Portfolio Page Specific Styles --- */

/* Small Hero Section for internal pages */
.hero.small-hero {
    padding: 100px 0 60px;
    /* Reduced padding */
    min-height: auto;
    /* Allow height to adjust */
}

.hero.small-hero h2 {
    font-size: 3em;
    /* Slightly smaller heading for internal pages */
    margin-bottom: 15px;
}

.hero.small-hero p {
    font-size: 1.1em;
    max-width: 900px;
    margin-bottom: 0;
}

/* Filter Controls */
.filter-controls button {
    background: transparent;
    border: 1px solid var(--green-neon);
    color: var(--green-neon);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    transition: all 0.3s ease;
}

.filter-controls button:hover,
.filter-controls button.active {
    background: rgba(var(--green-neon-rgb), 0.15);
    color: var(--green-neon);
    box-shadow: 0 0 10px rgba(var(--green-neon-rgb), 0.5);
}

/* Full Portfolio Grid */
.portfolio-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column layout for full details */
    gap: 60px;
    /* Increased gap between projects */
    margin-top: 40px;
}

.portfolio-item-full {
    background: var(--navy);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    /* Flex layout for image and details */
    align-items: flex-start;
    /* Align items to top */
    border: 1px solid rgba(var(--green-neon-rgb), 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item-full:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(var(--green-neon-rgb), 0.25);
}

.portfolio-item-full img {
    width: 40%;
    /* Image takes 40% of width */
    height: auto;
    /* Maintain aspect ratio */
    min-width: 250px;
    /* Minimum width for image */
    object-fit: cover;
    display: block;
    filter: brightness(0.8) grayscale(0.2);
    transition: filter 0.3s ease;
}

.portfolio-item-full:hover img {
    filter: brightness(1) grayscale(0);
}

.portfolio-item-full .item-details {
    padding: 30px;
    width: 60%;
    /* Details take 60% of width */
    text-align: left;
}

.portfolio-item-full h4 {
    color: var(--green-neon);
    /* Neon color for project titles */
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}

.portfolio-item-full p {
    color: var(--light-slate);
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.portfolio-item-full .tags {
    margin-top: 15px;
    margin-bottom: 25px;
}

.portfolio-item-full .tag {
    display: inline-block;
    background: rgba(var(--green-neon-rgb), 0.1);
    color: var(--green-neon);
    padding: 5px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-family: 'Roboto Mono', monospace;
    border: 1px solid rgba(var(--green-neon-rgb), 0.4);
}

.btn.small-btn {
    padding: 10px 20px;
    font-size: 0.9em;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive adjustments for Portfolio Page */
@media (max-width: 992px) {
    .portfolio-item-full {
        flex-direction: column;
        /* Stack image and details on smaller screens */
        align-items: center;
    }

    .portfolio-item-full img {
        width: 100%;
        max-height: 300px;
        min-width: unset;
        border-radius: 10px 10px 0 0;
    }

    .portfolio-item-full .item-details {
        width: 100%;
        padding: 25px;
        text-align: center;
    }

    .portfolio-item-full h4 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .hero.small-hero h2 {
        font-size: 2.5em;
    }

    .filter-controls button {
        padding: 8px 15px;
        font-size: 0.8em;
    }
}

/* --- Contact Info with Horizontal Icons Styling --- */

.contact-info.horizontal-icons {
    display: flex;
    justify-content: center;
    /* Đưa các icon ra giữa */
    align-items: center;
    gap: 35px;
    /* Khoảng cách lớn hơn giữa các icon */
    margin-top: 30px;
    /* Thêm khoảng cách phía trên */
}

.contact-info .icon-link {
    text-decoration: none;
    /* Loại bỏ gạch chân mặc định */
    color: inherit;
    display: inline-block;
}

.contact-info .neon-icon {
    /* Định dạng Icon mặc định */
    color: var(--green-neon);
    font-size: 2.2em;
    /* Tăng kích thước icon mặc định */
    transition: all 0.3s ease-in-out;
    /* Thêm transition cho mọi thay đổi */
    cursor: pointer;

    /* Hiệu ứng phát sáng nhẹ mặc định */
    text-shadow: 0 0 5px rgba(var(--green-neon-rgb), 0.5);
}

/* Hiệu ứng Hover */
.contact-info .icon-link:hover .neon-icon {
    font-size: 2.6em;
    /* Tăng kích thước khi hover */

    /* Tăng cường hiệu ứng sáng */
    color: #fff;
    /* Chuyển sang màu trắng để tăng độ sáng neon */
    text-shadow: 0 0 10px rgba(var(--green-neon-rgb), 1),
        0 0 25px rgba(var(--green-neon-rgb), 0.8),
        0 0 40px rgba(var(--green-neon-rgb), 0.4);
}

/* Nếu bạn muốn icon Zalo trông giống icon hơn */
.contact-info .fa-comment {
    border-radius: 50%;
    /* Làm tròn để tạo hình dạng icon Zalo */
}