/* ===========================================
   Space Rock - Main CSS
   Complete Styling for Multi-Page Website
   =========================================== */

/* ===========================================
   1. CSS VARIABLES & RESET
   =========================================== */
:root {
    /* Colors */
    --primary-color: #0A2463;
    --secondary-color: #D4AF37;
    --accent-color: #1E88E5;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --overlay: rgba(10, 36, 99, 0.85);
    
    /* Typography */
    --font-primary: 'Noto Sans KR', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===========================================
   2. UTILITY CLASSES
   =========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.bg-light {
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c09b2f;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-cta {
    background: linear-gradient(135deg, var(--secondary-color), #c09b2f);
    color: var(--white);
    padding: 18px 45px;
    font-size: 18px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* ===========================================
   3. HEADER & NAVIGATION
   =========================================== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

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

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

.nav-link-cta {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: #c09b2f;
}

.nav-toggle,
.nav-close {
    display: none;
}

/* ===========================================
   4. HERO SECTION
   =========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--white);
    font-size: 12px;
    animation: bounce 2s infinite;
}

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

/* ===========================================
   5. ABOUT SECTION
   =========================================== */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.stat-card i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

.about-text {
    max-width: 900px;
    margin: 0 auto 50px;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-quote {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
    position: relative;
}

.about-quote i {
    font-size: 24px;
    opacity: 0.5;
}

.about-quote p {
    font-size: 24px;
    font-weight: 500;
    margin: 20px 0;
}

.about-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-image-main img {
    height: 500px;
    width: 100%;
    object-fit: cover;
}

.about-image-secondary img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 15px;
    font-size: 14px;
    text-align: center;
}

/* ===========================================
   6. SERVICES SECTION
   =========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), #c09b2f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 36px;
    color: var(--white);
}

.service-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
}

/* ===========================================
   7. WHY SPACE ROCK SECTION
   =========================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--secondary-color);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===========================================
   8. PROJECTS SECTION
   =========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.project-card-featured {
    grid-column: 1 / -1;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.project-card-featured .project-image {
    height: 500px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.project-category {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.project-meta i {
    color: var(--secondary-color);
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ===========================================
   9. CTA SECTION
   =========================================== */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cta-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.9), rgba(30, 136, 229, 0.9));
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================
   10. FOOTER
   =========================================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    color: var(--secondary-color);
}

.footer-description {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 15px;
}

.footer-text i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* ===========================================
   11. SCROLL TO TOP
   =========================================== */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* ===========================================
   12. PAGE HERO (Sub-pages)
   =========================================== */
.page-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.8);
}

.page-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.breadcrumb a {
    opacity: 0.7;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 1;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

/* ===========================================
   13. CONTENT WRAPPER (Detail Pages)
   =========================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.content-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.content-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.content-image:hover img {
    transform: scale(1.05);
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 2px;
}

.feature-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 17px;
    margin-bottom: 5px;
}

.feature-item span {
    display: block;
    color: var(--text-light);
    font-size: 14px;
}

/* ===========================================
   14. GALLERY GRID
   =========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 300px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.gallery-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.gallery-info p {
    font-size: 14px;
    opacity: 0.9;
}

/* ===========================================
   15. RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 968px) {
    .hero-title { font-size: 48px; }
    .section-title { font-size: 36px; }
    .content-wrapper { grid-template-columns: 1fr; }
    .about-images { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item-large, .gallery-item-wide { grid-column: span 1; }
    .gallery-item-tall { grid-row: span 1; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 80px 30px 30px;
        box-shadow: -2px 0 20px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu.show {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-toggle,
    .nav-close {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary-color);
    }
    
    .nav-close {
        position: absolute;
        top: 25px;
        right: 25px;
    }
    
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 18px; }
    .hero-buttons { flex-direction: column; }
    .section-title { font-size: 28px; }
    .cta-title { font-size: 32px; }
}

/* Loading Animation */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
}