/* 
  Aramco Trading Clone Styles
  Author: Antigravity AI
*/

/* --- Variables & Reset --- */
:root {
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --bg-footer: #0a0a0a;
    --brand-green: #76BD22;
    --brand-blue: #00A3E0;
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --overlay-color: rgba(20, 26, 35, 0.65); /* A slightly cool, dark tint */
}

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

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    font-size: 18px; /* Increased base font size from default 16px */
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.menu-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px;
}

.hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-trigger:hover .hamburger .line:nth-child(2) {
    width: 70%;
}

.logo {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    color: #E60012;
}

.logo-subtext {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: lowercase;
    margin-top: 2px;
}

/* Simulated Graphic - simplified for demo */
.logo-graphic {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-menu {
    position: absolute;
    top: 40px;
    left: 40px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 40px;
    cursor: pointer;
    font-weight: 100;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
}

.nav-links {
    text-align: center;
}

.nav-links li {
    margin: 20px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.nav-overlay.active .nav-links li {
    transform: translateY(0);
    opacity: 1;
}

.nav-overlay.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-links li:nth-child(2) { transition-delay: 0.1s; }
/* ... (simplified delays) */

.nav-links a {
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--brand-blue);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Modern corporate architectural structure at dusk placeholder */
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    transform: scale(1.05); /* Slight zoom for potential animation */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    background: radial-gradient(circle at center, rgba(30, 40, 50, 0.4) 0%, rgba(10, 15, 20, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
}

.carousel-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.control-btn {
    width: 45px;
    height: 45px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.hero-text-block {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 56px; /* 2배 확대 (기존 28px) */
    font-weight: 500; /* 굵기 강화 (기존 300) */
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8); /* 가독성을 위한 그림자 */
}

.hero-divider {
    width: 60px;
    height: 1px;
    background-color: var(--text-primary);
    border: none;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 210px; /* 로고와 최대한 비슷하게 조금 더 키움 */
    font-weight: 900; 
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -3px; /* 로고의 글씨 간격이 좁음 */
    color: #E60012; /* 로고의 정확한 Red Color Code 적용 */
    text-shadow: 4px 4px 15px rgba(0,0,0,0.8);
    display: flex;
    align-items: baseline;
}

.logo-dot {
    margin: 0 5px; /* 언더스코어 좌우 간격 */
    display: inline-block;
    transform: scaleX(0.5) translateY(-20px); /* 언더스코어 가로길이를 반으로 줄이고 살짝 위로 띄움 */
}

.hero-description {
    font-family: 'Michroma', sans-serif;
    font-size: 34px; 
    font-weight: 500; /* Trust... 문구(500)와 동일한 굵기로 강화 */
    letter-spacing: 0px; 
    color: #ffffff; /* 다시 원래의 하얀색으로 복구 */
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    border-radius: 30px; /* Pillow shape common in modern UIs */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

/* --- Content Sections --- */
.content-section {
    padding: 100px 0;
}

.section-heading {
    font-size: 56px; /* Increased from 48px */
    font-weight: 500; /* Made thicker like the Trust text */
    margin-bottom: 60px;
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Strictly force 2 columns on wide screens */
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.bg-alt {
    background-color: #161618;
}

/* About Section */
.split-layout {
    display: flex;
    gap: 60px;
    align-items: stretch; /* 좌우 높이를 동일하게 맞춤 */
}
.split-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* 위아래 간격을 균등하게 배치하여 대칭감 생성 */
}
.split-text p {
    font-size: 24px; /* 우측 '한국 본사' 타이틀과 동일한 크기로 설정 */
    font-weight: 300;
    line-height: 1.6;
}
.lead-text {
    color: var(--brand-blue); /* 첫 번째 문단은 브랜드 색상 유지 */
}
.split-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--brand-green);
}
.feature-box.border-accent {
    border-left-color: var(--brand-blue);
}
.feature-box h4 {
    font-size: 24px; /* Increased from 20px */
    margin-bottom: 12px;
    font-weight: 400;
}

/* Leadership Section */
.team-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}
.team-card:hover {
    transform: translateY(-5px);
}
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* 배경 그라데이션은 이미지가 없을 때만 보이도록 뒤로 보냄 */
    background: linear-gradient(135deg, var(--brand-green), var(--brand-blue));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    margin: 0 auto 20px auto;
    overflow: hidden; 
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    z-index: 10; /* 커졌을 때 다른 요소를 가리지 않도록 */
}

/* 마우스 올렸을 때 2배 확대 및 그림자 효과 추가 */
.team-card:hover .avatar {
    transform: scale(2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 20;
}

.avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2; /* 배경 그라데이션보다 위로 올라오게 설정 */
}

.team-card h3 {
    font-size: 24px; /* Increased from 20px */
    font-weight: 400;
    margin-bottom: 8px;
}
.team-card .title {
    color: var(--brand-blue);
    font-size: 16px; /* Increased from 14px */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.team-card .desc {
    font-size: 16px; /* Increased from 14px */
    color: var(--text-muted);
}

/* Competencies Section (New Image-based Design) */
.text-center {
    text-align: center;
}
.competency-item {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comp-score {
    font-family: 'Michroma', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(255,255,255,0.1);
}

.comp-title {
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 12px;
}

.comp-desc {
    font-size: 16px;
    font-weight: 300;
    color: #a0a0a0;
    line-height: 1.5;
}

.comp-divider {
    border: none;
    height: 1px;
    background-color: #333333;
    margin: 40px 0;
}

.comp-banner {
    background: linear-gradient(135deg, #3d1b06 0%, #1a0b02 100%);
    border: 1px solid #5a270a;
    border-radius: 8px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.comp-banner p {
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    line-height: 1.6;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.1);
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
}
.timeline-dot {
    position: absolute;
    left: -46px; /* 40px padding + 6px to center over 2px line */
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-blue);
    box-shadow: 0 0 10px var(--brand-blue);
}
.timeline-content h3 {
    font-size: 32px; /* Increased from 28px */
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.timeline-content p {
    color: var(--text-muted);
    font-size: 20px; /* Increased from 18px */
    font-weight: 300;
}

/* Stats Footer */
.stat-col {
    display: flex;
    gap: 40px;
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: 48px;
    font-weight: 100;
    color: var(--brand-green);
    line-height: 1;
}
.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}
.small-btn {
    padding: 10px 20px;
    font-size: 14px;
    background: rgba(255,255,255,0.05);
}
.contact-email {
    margin-top: 25px;
}
.flex-end {
    display: flex;
    justify-content: flex-end;
}

/* original card styles below */
.card {
    background: var(--bg-card);
    border-radius: 8px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent;
    overflow: hidden; /* 이미지가 카드 밖으로 삐져나오지 않도록 */
}

.card:hover {
    transform: translateY(-5px);
    border-top-color: var(--brand-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-content {
    padding: 24px; /* 30px에서 추가 20% 감소 */
}

.card-image {
    width: 100%;
    height: 190px; /* 240px에서 추가 20% 감소 */
    overflow: hidden;
    cursor: pointer; /* 클릭 가능하다는 표시(손가락 모양) */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05); /* 카드에 마우스를 올리면 사진이 살짝 커짐 */
}

.card-icon {
    font-size: 48px; /* Increased from 40px */
    margin-bottom: 20px;
    color: var(--brand-green);
}

.card h3 {
    font-size: 28px; /* Increased from 24px */
    font-weight: 300;
    margin-bottom: 15px;
}

.card p {
    font-size: 18px; /* Increased for readability */
    color: var(--text-muted);
    font-weight: 300;
}

.map-placeholder {
    width: 100%;
    height: 500px;
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
}

.map-placeholder p {
    color: #444;
    font-size: 24px;
    font-weight: 300;
}

/* --- Roadmap Section Custom CSS --- */
.roadmap-grid {
    display: grid;
    grid-template-columns: 280px 1fr 1fr 1fr 1fr;
    grid-auto-rows: minmax(80px, auto);
    gap: 15px;
    background: #0f1c2b; /* Subtle dark blue background matching image */
    padding: 50px;
    border-radius: 12px;
    align-items: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.rm-year {
    font-size: 24px;
    font-weight: 700;
    color: #4dc0ff; /* Bright blue for years */
    text-align: center;
    border-bottom: 2px solid #2a3b4e;
    padding-bottom: 15px;
}

.rm-category {
    text-align: right;
    padding-right: 30px;
    border-right: 1px solid #2a3b4e;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rm-category h3 {
    font-family: var(--font-main);
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 400;
}

.rm-category p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.rm-bar {
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    position: relative;
    line-height: 1.4;
    transition: transform 0.3s ease;
}

.rm-bar:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Base Spans */
.rm-span-2 { grid-column: span 2; }
.rm-span-3 { grid-column: span 3; }
.rm-row-span-2 { grid-row: span 2; }

/* Colors - Green (Specialty Gas) */
.bd-green { border-color: #8cc63f; }
.txt-green { color: #d9f2b8; }
.bg-green-light { background-color: rgba(140, 198, 63, 0.1); }
.bg-green-dark { background-color: rgba(140, 198, 63, 0.2); }

/* Colors - Orange (Transformer) */
.bd-orange { border-color: #f7931e; }
.txt-orange { color: #fce2c4; }
.bg-orange-light { background-color: rgba(247, 147, 30, 0.1); }
.bg-orange-mid { background-color: rgba(247, 147, 30, 0.15); }
.bg-orange-dark { background-color: rgba(247, 147, 30, 0.25); }

/* Colors - Purple (K-Beauty) */
.bd-purple { border-color: #92278f; }
.txt-purple { color: #edbdf0; }
.bg-purple-light { background-color: rgba(146, 39, 143, 0.1); }
.bg-purple-mid { background-color: rgba(146, 39, 143, 0.2); }
.bg-purple-dark { background-color: rgba(146, 39, 143, 0.3); }

/* Remove background alt on next section since we used it here */
.bg-alt {
    background-color: var(--bg-alt);
}

/* --- Image Modal (Lightbox) --- */
.image-modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    z-index: 2000; /* 맨 위에 표시되도록 가장 높은 값 */
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* 어두운 반투명 배경 */
    backdrop-filter: blur(5px);
}

.image-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain; /* 비율 유지하며 화면에 맞춤 */
    animation-name: zoom; /* 팝업 줌 애니메이션 */
    animation-duration: 0.4s;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

@keyframes zoom {
    from {transform: scale(0.1); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: var(--brand-blue);
    text-decoration: none;
    cursor: pointer;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--bg-footer);
    padding: 80px 0 30px 0;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 25px;
    color: #fff;
}

.footer-text {
    color: var(--text-muted);
    font-weight: 300;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 300;
}

.footer-links a:hover {
    color: #fff;
}

.social-links a {
    display: inline-block;
    padding: 8px 16px;
    background: #222;
    border-radius: 4px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 64px;
    }
    .split-layout {
        flex-direction: column;
    }
    .flex-end {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .main-header {
        padding: 0 20px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-heading {
        font-size: 36px;
    }
}
