:root {
    --primary: #FF6B35;  /* 주황색 */
    --secondary: #2A2A2A;
    --accent: #00C2CB;
    --light: #F5F5F5;
}

/* 네비게이션 배너 스타일 */
.nav-banners {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
    list-style: none; /* 점 (bullet points) 제거 */
}

.nav-banner {
    background: transparent; /* 배경 제거 */
    padding: 1.2rem 2.5rem;
    color: var(--primary); /* 글씨만 주황색 */
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* 두꺼운 글씨 */
    text-transform: uppercase; /* 대문자 변환 */
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    text-align: center;
}

.nav-banner:hover {
    color: var(--accent); /* 호버 시 색상 변경 */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.nav-banner:focus, .nav-banner:hover {
    text-decoration: none; /* 호버나 클릭 시 밑줄 제거 */
}

/* 로고 스타일 (우측 상단) */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 120px; /* 로고 크기 */
    z-index: 1000;
}

.logo img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05); /* 마우스 호버 시 확대 효과 */
}

/* 히어로 섹션 */
.hero {
    height: 100vh;
    background: linear-gradient(45deg, #424244 0%, #464545 80%), /* 회색 그라데이션 */
                url('https://images.unsplash.com/photo-1488590528505-98d2b5aba04b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 검은색 오버레이 */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    color: white;
}

/* 텍스트 애니메이션 */
.hero h1 {
    font-size: 5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out, colorChange 2s forwards;
}

.hero p {
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.5s, colorChange 2s forwards;
}

/* 애니메이션 추가 - 글자 색상 변경 */
@keyframes colorChange {
    0% {
        color: white; /* 초기 글자색 */
    }
    100% {
        color: var(--primary); /* 애니메이션 끝날 때 주황색으로 변경 */
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 회사소개 카드 */
.about-card {
    display: flex;
    flex-direction: row;
    justify-content: center; /* 중앙 정렬 */
    align-items: center;
    background: #fff;
    /* border-radius: 12px;  이 부분 제거 또는 0으로 설정 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 50px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;  /* 패딩과 보더를 width에 포함 */
}

/* 이미지 부분 */
.about-image {
    width: 60%;
    max-width: 450px;
    margin-right: 20px;
    display: flex;
    justify-content: center;  /* 이미지 중앙 정렬 */
    align-items: center;
    box-sizing: border-box;  /* 패딩과 보더를 width에 포함 */
    /* border-radius: 10px;  이 부분 제거 */
}

.about-image img {
    width: 100%;
    height: auto;
    /* border-radius: 10px;  이 부분 제거 */
    object-fit: cover;  /* 이미지를 컨테이너에 맞게 잘라서 채웁니다. */
}

/* 텍스트 부분 */
.about-text {
    width: 55%;
    text-align: left;
    box-sizing: border-box;  /* 패딩과 보더를 width에 포함 */
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.slogan {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: 20px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .about-card {
        flex-direction: column; /* 모바일에서 세로로 배치 */
        justify-content: center; /* 텍스트와 이미지가 중앙에 배치되도록 */
        align-items: center; /* 중앙 정렬 */
        text-align: center; /* 텍스트 중앙 정렬 */
    }

    .about-image {
        width: 80%;  /* 모바일에서 이미지 크기 축소 */
        margin-bottom: 20px;
    }

    .about-text {
        width: 100%;  /* 텍스트 영역을 전체 너비로 확장 */
    }

    .about-text h2 {
        font-size: 1.6rem;  /* 제목 크기 조정 */
    }

    .about-text p {
        font-size: 1rem;  /* 본문 크기 조정 */
    }

    .slogan {
        font-size: 1.2rem;  /* 슬로건 글씨 크기 조정 */
    }
}
/* 헤더 */
.header {
    background-color: #424244; /* 진한 회색 배경 */
    position: fixed; /* 스크롤해도 유지 */
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.nav-menu {
    text-align: center;
    width: 100%;
}

.content {
    padding-top: 100px; /* 헤더 높이만큼 여백 추가 */
}
/* 추가된 이미지 크기 설정 */
.product-extra-image img {
    width: 100%; /* 컨테이너 크기에 맞게 이미지 크기 조정 */
    max-width: 250px; /* 최대 크기 설정 (원하는 크기로 조정) */
    height: auto; /* 비율에 맞춰 자동 크기 조정 */
    margin-bottom: 15px; /* 텍스트와 이미지 사이 여백 추가 */
    display: block; /* 이미지가 새 줄에 표시되도록 설정 */
    margin-left: auto;
    margin-right: auto; /* 이미지 중앙 정렬 */
}
/* PRODUCK 섹션 스타일링 */
#products {
    background-color: #f5f5f5; /* 배경 색상 */
    padding: 5rem 0; /* 위아래 여백 */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--primary); /* 주황색 */
}

/* 전체 제품 그리드 스타일 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));  /* 최소 320px, 자동 조정 */
    gap: 2rem;  /* 카드 간 간격 */
    margin-top: 2rem;
}

/* 제품 카드 스타일 */
.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

/* 제품 이미지 크기 */
.product-image-container {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* 모바일 반응형 이미지 */
@media (max-width: 768px) {
    .product-image-container {
        max-width: 100%; /* 모바일에서 이미지가 화면에 꽉 차도록 설정 */
        margin-bottom: 10px; /* 모바일에서 여백 줄이기 */
    }

    .product-info {
        text-align: left; /* 모바일에서 텍스트 정렬 변경 */
    }

    .product-description {
        font-size: 1rem; /* 모바일에서 글씨 크기 조정 */
        line-height: 1.5;
    }

    .feature-section {
        margin-bottom: 15px;
    }

    .product-card {
        flex-direction: column; /* 모바일에서 세로 배치로 변경 */
        align-items: stretch; /* 모바일에서 카드 전체 너비 사용 */
        padding: 15px; /* 여백 줄이기 */
    }

    .feature-title {
        font-size: 1.1rem; /* 모바일에서 제목 크기 줄이기 */
    }

    .product-link {
        font-size: 1rem; /* 모바일에서 버튼 크기 줄이기 */
        padding: 8px 15px; /* 버튼 크기 줄이기 */
    }
}

/* 텍스트 및 링크 스타일 */
.product-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-description {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-section {
    text-align: left;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-features {
    list-style-type: none;
    padding-left: 0;
    font-size: 1rem;
    color: #555;
}

.product-features li {
    margin-bottom: 10px;
}

/* 버튼 스타일 */
.product-link {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background-color: var(--primary);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.product-link:hover {
    background-color: #ff4500;
}

/* '자세히 보기' 버튼 스타일 */
.product-link {
    display: inline-flex;
    align-items: center;
    background-color: transparent;  /* 배경을 투명으로 설정 */
    color: var(--primary); /* 주황색 글씨 */
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 16px;  /* 여백 조정 */
    opacity: 0; /* 페이지 로드 시 버튼 숨기기 */
    animation: fadeInButton 0.8s forwards; /* 애니메이션 추가 */
}

/* 이모티콘과 글자 간 간격 */
.product-link i {
    margin-left: 10px; /* 글자와 이모티콘 사이 간격 */
    transition: transform 0.3s ease;  /* 호버 시 이모티콘 움직임 */
}

/* 애니메이션: 버튼 나타나기 */
@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translateY(20px); /* 아래에서 위로 이동하며 나타나기 */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 호버 효과 */
.product-link:hover {
    color: #fff;  /* 호버 시 글자 색상 하얀색 */
    background-color: var(--primary);  /* 배경을 주황색으로 */
}

.product-link:hover i {
    transform: translateX(10px);  /* 호버 시 이모티콘이 오른쪽으로 이동 */
    transition: transform 0.3s ease;  /* 이모티콘 이동 속도 */
}


.all-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.all-menu-btn {
    background: none;  /* 배경 제거 */
    color: #faf8f7;  /* 아이콘 색상 */
    padding: 1rem;  /* 패딩 조정 */
    font-size: 2rem;  /* 아이콘 크기 */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;  /* 부드러운 전환 */
}

/* 버튼 호버 시 효과 */
.all-menu-btn:hover {
    color: #fff;  /* 호버 시 아이콘 색상 변경 */
    background-color: rgba(255, 255, 255, 0.1);  /* 호버 시 배경색 추가 */
    transform: translateY(-3px);  /* 버튼 살짝 위로 이동 */
}

/* 버튼 클릭 시 효과 */
.all-menu-btn:active {
    transform: translateY(2px);  /* 클릭 시 버튼이 눌린 느낌 */
}

/* ALL MENU 버튼 스타일 */
.all-menu-btn {
    background: none;
    color: #FF6B35;
    padding: 0.7rem;  /* 기본 패딩 */
    font-size: 1.3rem;  /* 아이콘 크기 */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 모바일 최적화: 화면 크기가 768px 이하일 때 */
@media (max-width: 768px) {
    .all-menu-btn {
        font-size: 1.5rem;  /* 아이콘 크기 줄이기 */
        padding: 0.8rem;  /* 버튼 크기 줄이기 */
    }
}

/* 아이콘과 텍스트 사이 여백 추가 */
.all-menu-btn i {
    margin-right: 10px;  /* 아이콘과 텍스트 사이에 10px 간격 추가 */
}

/* 버튼 호버 시 효과 */
.all-menu-btn:hover {
    color: white;  /* 호버 시 아이콘과 글씨 색상을 흰색으로 유지 */
    background-color: transparent;  /* 배경 색상 변경을 없앰 */
    transform: translateY(-3px);  /* 버튼 살짝 위로 이동 */
}

/* 버튼 클릭 시 효과 */
.all-menu-btn:active {
    transform: translateY(2px);  /* 클릭 시 버튼이 눌린 느낌 */
}


/* ALL MENU 내용 스타일링 */
.all-menu-content {
    position: fixed;
    top: 0;
    right: -300px;  /* 처음에는 화면 밖으로 숨겨짐 */
    width: 200px;
    height: 100%;
    background-color: #2A2A2A; /* 어두운 회색 배경 */
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2); /* 부드러운 그림자 */
    z-index: 9999;
    padding: 30px 20px;  /* 여백 증가 */
    transition: transform 0.3s ease-in-out, right 0.3s ease-in-out; 
    transform: translateX(100%);
}
@media (max-width: 768px) {
    .all-menu-content {
        width: 200px;  /* 모바일에서 슬라이드 메뉴 너비 줄이기 */
    }
}

/* 메뉴가 열릴 때 */
.all-menu-content.open {
    right: 0;
    transform: translateX(0);
}

/* 메뉴 헤더 - MENU 글씨 왼쪽 배치, X 표시는 오른쪽 상단 */
.menu-header {
    background-color: transparent; /* 배경 색상 제거 */
    padding: 15px;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between; /* 양쪽 끝에 배치 */
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 아래쪽에 가벼운 선 추가 */
}

/* MENU 텍스트 왼쪽에 배치 */
.menu-header h2 {
    margin-left: 0; /* 왼쪽 여백 제거 */
}

/* X 표시는 오른쪽 상단에 배치 */
.close-btn {
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    position: absolute; /* 절대 위치로 설정 */
    right: 15px; /* 오른쪽 15px */
    top: 15px; /* 상단 15px */
}
/* 메뉴 항목 스타일 */
.all-menu-content ul {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.all-menu-content ul li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s;
}

/* 메뉴 항목 클릭 시 애니메이션 */
.all-menu-content ul li:hover {
    transform: translateX(10px); /* 항목이 약간 오른쪽으로 이동 */
    color: #00C2CB; /* 클릭 시 색상 변경 */
}

.all-menu-content ul li a {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.all-menu-content ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* 호버 시 배경색 변경 */
}

/* 아이콘 스타일 */
.all-menu-content ul li a i {
    margin-right: 10px;
    font-size: 1.5rem;  /* 아이콘 크기 조정 */
}

/* 메뉴 닫기 버튼 */
.close-btn {
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #FF6B35;
}
/* 기존 네비게이션 관련 스타일 삭제 */
.nav-banners {
    display: none;
}
/* 페이지 전체 배경 색상 설정 */
html, body {
    margin: 0;  /* 기본 마진 제거 */
    padding: 0;  /* 기본 패딩 제거 */
    height: 100%;  /* 화면 전체를 채우도록 설정 */
    background-color: #2A2A2A;  /* 원하는 배경 색상 (현재 바탕색으로 설정) */
}

/* 하단은 건드리지 않도록 설정 */
body {
    min-height: 100vh;  /* 화면 전체를 채우도록 최소 높이 설정 */
}

