/*
 * Main Theme Styles for Magron One-Page Layout
 */

/* Reset & Base Styles */
:root {
    --primary-color: #0d47a1;
    --secondary-color: #1976d2;
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --font-family: 'Noto Sans KR', 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: #001f3f;
    /* Deep blue fallback */
    background-image: url('../images/hero-bg.jpg');
    /* High resolution magnet background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    /* Pill shape for premium feel */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-color);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.site-header.scrolled .header-container {
    height: 70px;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
}

.main-navigation li {
    margin-left: 30px;
    position: relative;
}

.main-navigation a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 1rem;
    padding: 10px 0;
    display: inline-block;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.main-navigation .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.main-navigation .dropdown li {
    margin: 0;
}

.main-navigation .dropdown a {
    padding: 12px 20px;
    display: block;
    font-size: 0.95rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.main-navigation .dropdown li:last-child a {
    border-bottom: none;
}

.main-navigation .dropdown a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
    /* slight indent on hover */
    transition: all 0.3s ease;
}

.main-navigation .has-dropdown:hover .dropdown {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-thumb {
    height: 240px;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.product-info .product-excerpt {
    color: #555;
    font-size: 0.95rem;
}

.product-info .read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.product-info .read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.product-info .read-more:hover::after {
    width: 100%;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.05rem;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.custom-form input,
.custom-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    padding: 60px 0 20px;
    border-top: 1px solid #eaeaea;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
}

/* Utils */
.bg-light {
    background-color: var(--light-bg);
}

.bg-white {
    background-color: var(--white);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.text-primary {
    color: var(--primary-color);
}

.padding-bottom {
    padding-bottom: 100px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.p-30 {
    padding: 30px;
}

.w-100 {
    width: 100%;
}

.radius-8 {
    border-radius: 8px;
    overflow: hidden;
}

.shadow-premium {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), #092c66);
    padding: 100px 0;
    position: relative;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-detail i {
    width: 25px;
    font-size: 1.1rem;
    margin-top: 4px;
}

.contact-detail p {
    margin: 0;
    flex: 1;
}

/* Responsive */
@media(max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
        background: var(--white);
        position: absolute;
        top: 80px;
        left: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        margin: 0;
    }

    .main-navigation li {
        margin: 10px 0;
    }

    .header-utils {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}