/* Global Styles */
:root {
    --primary-bg: #092544;
    --light-bg: #14365e;
    --text-color: #ffffff;
    --secondary-color-1: #ffb600;
    --secondary-color-2: #ff9d00;
    --secondary-color-3: #ff8500;
    --secondary-color-4: #f95100;
    --secondary-color-5: #e30000;
    --secondary-color-6: #ac0000;
    --secondary-color-7: #740008;
    --secondary-color-8: #3d0177;
    --section-padding: 80px 0;
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary-color-1);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color-2);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color-1);
}

section {
    padding: var(--section-padding);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color-3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 1rem;
}

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

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(9, 37, 68, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo h1 {
    margin: 0;
    font-size: 28px;
    background: linear-gradient(90deg, var(--secondary-color-1), var(--secondary-color-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color-1);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    margin-left: auto;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

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

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

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

/* Main Content Styles - Setting a top margin to account for fixed header */
main {
    margin-top: 80px;
}

/* About Section */
#about {
    background-color: var(--light-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 182, 0, 0.1);
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.circular {
    width: 500px; /* Điều chỉnh kích thước */
    height: 500px; /* Đảm bảo width = height */
    border-radius: 50%; /* Biến ảnh thành hình tròn */
    object-fit: cover; /* Cắt ảnh cho vừa khung tròn */
    display: block; /* Tránh khoảng trắng không mong muốn */
  }
  
  

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text {
    flex: 1.5;
    position: relative;
    z-index: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Portfolio Section */
#portfolio {
    background: linear-gradient(to bottom, var(--primary-bg), var(--light-bg));
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background-color: rgba(20, 54, 94, 0.5);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding-bottom: 20px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    border-bottom: 3px solid var(--secondary-color-3);
}

.portfolio-item h3, .portfolio-item p {
    padding: 0 20px;
}

.portfolio-item h3 {
    margin-top: 15px;
    font-size: 1.3rem;
    color: var(--secondary-color-1);
}

.portfolio-item .btn {
    margin-left: 20px;
}

/* Blog Section */
#blog {
    background-color: var(--primary-bg);
    position: relative;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background-color: rgba(20, 54, 94, 0.5);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.blog-post::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color-2), var(--secondary-color-8));
    top: 0;
    left: 0;
}

.blog-post:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-post h3 {
    color: var(--secondary-color-2);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 500;
    position: relative;
}

.read-more::after {
    content: "→";
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.read-more:hover::after {
    margin-left: 10px;
}

/* Footer Styles */
footer {
    background-color: var(--light-bg);
    padding: 60px 0 30px;
    position: relative;
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}


.contact-info h2 {
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color-3);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Animation for page elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease forwards;
}

#about {
    animation-delay: 0.2s;
}

#portfolio {
    animation-delay: 0.4s;
}

#blog {
    animation-delay: 0.6s;
}

footer {
    animation-delay: 0.8s;
}

/* Comprehensive Media Queries for Responsiveness */
/* Large Screens (desktops) */
@media screen and (max-width: 1200px) {
    :root {
        --section-padding: 70px 0;
    }
    
    .portfolio-grid, .blog-posts {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 0 20px;
    }
    
    .about-content {
        padding: 0 20px;
    }
}

/* Medium Screens (tablets) */
@media screen and (max-width: 992px) {
    :root {
        --section-padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 30px;
        max-width: 280px;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .portfolio-grid, .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}

/* Small to Medium Screens (small tablets) */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
    }
    
    body {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    h2::after {
        width: 60px;
        height: 3px;
    }
    
    /* Hamburger Menu Implementation */
    .hamburger {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light-bg);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
        clip-path: circle(0px at top right);
        transition: clip-path 0.5s ease;
        padding: 20px 0;
    }
    
    nav.active {
        clip-path: circle(1500px at top right);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    header {
        padding: 15px 5%;
    }
    
    main {
        margin-top: 70px;
    }
    
    .portfolio-grid, .blog-posts {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .portfolio-item, .blog-post {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .contact-info {
        padding: 0 20px;
    }
}

/* Extra Small Screens (mobile phones) */
@media screen and (max-width: 576px) {
    :root {
        --section-padding: 40px 0;
    }
    
    body {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .about-image {
        max-width: 220px;
    }
    
    .portfolio-item h3, .blog-post h3 {
        font-size: 1.2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .portfolio-item, .blog-post {
        padding-bottom: 15px;
    }
    
    .portfolio-item p, .blog-post p {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* Very Small Screens */
@media screen and (max-width: 375px) {
    header {
        padding: 12px 4%;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .hamburger {
        width: 25px;
        height: 18px;
    }
    
    .btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }
}

body {
    color: #ffff; /* Màu trắng */
}


.circular {
    width: 150px;        /* Điều chỉnh kích thước theo ý muốn */
    height: 150px;       /* Đảm bảo chiều cao bằng chiều rộng */
    border-radius: 50%;  /* Tạo hiệu ứng hình tròn */
    object-fit: cover;   /* Cắt xén ảnh cho vừa khung nếu cần */
  }
  

/*định dạng info cuối blog*/
.post-footer {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-top: 2px solid #ddd;
    text-align: center;
    border-radius: 8px;
}

.post-footer h3 {
    color: #333;
    font-size: 1.5em;
}

.contact-icons a {
    display: inline-block;
    margin: 10px;
    text-decoration: none;
    color: #0073b1;
    font-weight: bold;
}

.contact-icons img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

