/* Reset và base styles */
:root {
    --primary-color: #2c3d3d; /* Dark teal */
  --secondary-color: #1a2525; /* Darker teal */
  --light-bg: #f5f5f5;
  --dark-bg: #2c3d3d;
  --text-color: #333;
  --light-text: #f5f5f5;
  --gray-text: #666;
  --section-padding: 8rem 2rem;
  --container-width: min(1200px, 90%);
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Thêm vào styles.css */
.gradient-text {
    background: linear-gradient(45deg, #2c3d3d, #3a5757, #487272); /* Teal gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
    animation: gradient-animation 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { font-size: clamp(1rem, 2vw, 1.125rem); }

/* Layout Utilities */
.container {
  width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center { text-align: center; }
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  padding: 1.5rem 1cm; /* Thêm padding 1cm hai bên */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-container {
  width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* Đẩy logo sang trái, nav sang phải */
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color:ff0000;
  text-decoration: none;
  margin-right: auto; /* Giữ logo bên trái */
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-left: auto; /* Đẩy nav sang phải */
}

/* Các style khác giữ nguyên */
nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
}

nav a:hover,
nav a.active {
  color: #2c3d3d; /* Light orange */
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2c3d3d;
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Icon Home trong navigation */
nav ul li:first-child a {
    font-size: 1.2rem; /* Kích thước icon */
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul li:first-child a::after {
    display: none; /* Ẩn gạch chân khi hover */
}

/* Điều chỉnh khoảng cách giữa các mục menu */
nav ul {
    display: flex;
    gap: 1.5rem; /* Giảm khoảng cách nếu cần */
    list-style: none;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row; /* Giữ hàng ngang trên mobile */
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  nav a {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .logo {
    font-size: 1.3rem;
  }
}


/* Hero Section */
.hero {
  padding: 6rem 0;
  margin-top: 80px;
  background-color: #f9f9f9;
}

.hero-container {
  display: flex;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  gap: 4rem;
}

.hero-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.03);
}

.hero-content {
  flex: 1;
  padding: 2rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.hero p {
  margin-bottom: 2.5rem;
  color: var(--gray-text);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-button {
  margin-top: 2rem;
}


/* Our Products Section */
#our-products {
    text-align: center;
    padding: var(--section-padding);
}

#our-products .section-title {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

#our-products .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

#our-products .projects-grid {
    margin-top: 2rem;
}


/* Responsive Design */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-image {
    width: 80%;
    margin: 0 auto;
  }
  
  .hero-content {
    text-align: center;
    padding: 1rem;
  }
  
  .hero-button {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
    margin-top: 70px;
  }
  
  .hero-image {
    width: 100%;
  }
}
/* Responsive */
@media (max-width: 992px) {
  .hero {
    justify-content: center;
  }
  
  .hero::after {
    width: 100%;
    background: rgba(245, 247, 250, 0.8);
  }
  
  .hero-content {
    width: 80%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-content {
    width: 90%;
    padding: 1.5rem;
  }
  
  .hero {
    margin-top: 70px;
    min-height: 80vh;
  }
}

/* Thêm vào styles.css */
.project-tags {
    display: flex;
    justify-content: center; /* Căn giữa nút */
    margin-top: 1rem;
}

.project-tags a.tag {
    background-color: #4285F4; /* Màu xanh Google Play */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.project-tags a.tag:hover {
    background-color: #e07d00; /* Darker orange */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.1); /* Orange shadow */
}
.project-tags a.tag i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Projects/Products Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.project-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
}

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

.project-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  margin-bottom: 0.75rem;
}

.project-info p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: #f0f0f0;
  color: var(--gray-text);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Featured Section */
#featured {
  background-color: var(--light-bg);
}

/* About Section */
#about-us {
  background-color: #fff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 2rem;
  color: var(--gray-text);
}

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

.feature-box {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

/* Footer/Contact */
footer {
  background-color: #f5f5f5; /* Thay đổi từ var(--dark-bg) sang màu xám nhạt */
  color: var(--text-color); /* Đổi màu chữ sang đen hoặc màu tối để dễ đọc */
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.footer-column h3 {
  color: var(--secondary-color); /* Thay đổi từ #fff sang màu tối hơn */
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--gray-text); /* Thay đổi từ #bbb sang màu xám đậm hơn */
}

.footer-column a:hover {
  color: var(--primary-color);
}

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

.social-links a {
  color: #fff;
  font-size: 1.25rem;
  transition: var(--transition);
}
.footer-logo {
    margin-bottom: 1rem;
    text-align: center; /* Căn giữa logo */
}

/* Thêm vào styles.css */
.header-icon {
    height: 40px; /* Điều chỉnh kích thước theo ý muốn */
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px;
}

/* Điều chỉnh lại padding cho logo nếu cần */
.logo {
    display: flex;
    align-items: center;
    padding: 5px 0; /* Giảm padding nếu icon quá lớn */
}

.footer-logo-img {
    width: 500px; /* Kích thước mới - có thể điều chỉnh */
    height: auto; /* Giữ tỉ lệ */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05); /* Hiệu ứng phóng to nhẹ khi hover */
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}
.copyright {
  color: var(--gray-text); /* Thay đổi từ #bbb sang màu xám đậm hơn */
  border-top: 1px solid #ddd; /* Làm nhạt đường viền */
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: #2c3d3d;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
   background-color: #2c3d3d;
}

.cta-button:hover {
  background-color: #1a2525; /* Darker orange */
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(44, 61, 61, 0.4); /* Orange shadow */
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 6rem 1.5rem;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1.5rem;
  }
  
  .hero {
    margin-top: 120px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .section-title::after {
    width: 60px;
  }
}