/* (주)대농건설 - 깔끔한 디자인 CSS */

/* CSS 변수 (색상 정리) */
:root {
    --primary: #2c3e50;      /* 다크 네이비 */
    --secondary: #34495e;    /* 그레이 블루 */
    --accent: #3498db;       /* 깔끔한 블루 */
    --success: #27ae60;      /* 자연스러운 그린 */
    --warning: #f39c12;      /* 오렌지 */
    --kakao: #fee500;        /* 카카오 옐로우 */
    --kakao-text: #181600;   /* 카카오 텍스트 */
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #212529;
    --border: #e9ecef;
    
    /* 폰트 */
    --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* 그림자 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
    
    /* 애니메이션 */
    --transition: all 0.3s ease;
}

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* 네비게이션 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--accent);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

/* 인증서 모달 스타일 */
.modal {
    transition: opacity 0.3s ease;
}

.modal-content {
    animation: modalSlideIn 0.3s ease;
}

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

.certificate-image-container:hover .image-overlay {
    opacity: 1 !important;
}

.certificate-image-container:hover .certificate-image {
    transform: scale(1.05) !important;
}

.certificate-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .certificate-card {
        padding: 1.5rem !important;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 5% auto !important;
        max-height: 90vh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .image-slider {
        max-height: calc(90vh - 250px) !important;
        overflow-y: auto !important;
        flex: 1 !important;
    }
    
    .modal-header {
        padding: 1rem 1.5rem !important;
        flex-shrink: 0 !important;
    }
    
    .modal-info {
        padding: 1.5rem !important;
        flex-shrink: 0 !important;
    }


}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* 히어로 섹션 */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.temp-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--secondary) 50%, 
        var(--accent) 100%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.7);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-contacts {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.contact-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
}

.phone-btn {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--white);
}

.phone-btn:hover {
    background: transparent;
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.kakao-btn {
    background: var(--kakao);
    color: var(--kakao-text);
    border: 1px solid var(--kakao);
}

.kakao-btn:hover {
    background: #fdd835;
    color: var(--kakao-text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 정보 섹션 */
.info-section {
    padding: 5rem 0;
    background: var(--light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.info-item {
    padding: 2rem 1.5rem;
    background: transparent;
    border-radius: 8px;
    transition: var(--transition);
}

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

.info-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-text {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.info-text small {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 400;
}

/* 서비스 섹션 */
.services-section {
    padding: 6rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 2.5rem 2rem;
    background: transparent;
    border-radius: 8px;
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-note {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

/* 특허 섹션 */
.patent-section {
    padding: 6rem 0;
    background: var(--primary);
    color: var(--white);
}

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

.patent-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.patent-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.patent-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.benefit {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: var(--transition);
}

.benefit:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 인사말 섹션 */
.greeting-section {
    padding: 6rem 0;
    background: var(--light);
    text-align: center;
}

.greeting-content {
    max-width: 900px;
    margin: 0 auto;
}

.greeting-section h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.greeting-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.greeting-text p {
    margin-bottom: 1.5rem;
}

/* 회사 모토 섹션 */
.motto-section {
    background: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.motto-section h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.motto-text {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.motto-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.motto-item {
    padding: 1.5rem;
    background: var(--light);
    border-radius: 8px;
    border-left: 3px solid var(--success);
}

.motto-item h4 {
    font-weight: 600;
    color: var(--primary);
}

/* 연락처 섹션 */
.contact-section {
    padding: 6rem 0;
    background: var(--light);
}

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

.contact-item {
    padding: 2.5rem 2rem;
    background: transparent;
    border-radius: 8px;
    transition: var(--transition);
}

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

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.contact-info small {
    color: var(--gray);
    font-size: 0.9rem;
}

.kakao-link {
    display: inline-block;
    background: var(--kakao);
    color: var(--kakao-text);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.kakao-link:hover {
    background: #fdd835;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 플로팅 카카오톡 버튼 */
.floating-kakao {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--kakao);
    color: var(--kakao-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.floating-kakao:hover {
    background: #fdd835;
    text-decoration: none;
    transform: scale(1.1);
}

/* 푸터 */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-contacts {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-btn {
        width: 100%;
        max-width: 300px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .patent-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .motto-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .floating-kakao {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
        bottom: 20px;
        right: 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .patent-benefits {
        grid-template-columns: 1fr;
    }

    .motto-benefits {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: center;
    }
}
