/* UNIFYA Official Website - Complete Styles */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   SIDE NAVIGATION - FIXED POSITIONING
   ============================================ */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    border-right: 1px solid rgba(0, 255, 255, 0.1);
    padding: 40px 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.side-nav::-webkit-scrollbar {
    width: 6px;
}

.side-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.side-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

.side-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

.logo {
    padding: 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-full {
    width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.3));
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 16px 30px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-menu a:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
    border-left-color: #00ffff;
    padding-left: 35px;
}

.nav-menu a.active {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    border-left-color: #00ffff;
    font-weight: 600;
}

.nav-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #00ffff 0%, rgba(0, 255, 255, 0.3) 100%);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Language Selector in Sidebar */
.lang-selector {
    padding: 20px 30px;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.lang-selector select {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    color: #00ffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-selector select:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
}

.lang-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.2);
}

/* ============================================
   MAIN CONTENT - WITH LEFT MARGIN FOR SIDEBAR
   ============================================ */
.main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    min-height: 100vh;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(0, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    background-image: url('../images/unifya-digital-earth.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.3) 50%, rgba(10, 10, 10, 0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.hero-welcome {
    font-size: 56px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.hero-tagline {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.hero-earth-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.4));
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero h2 {
    font-size: 64px;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.5);
    }
}

/* Content Sections */
.section-header-with-image {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.section-title-content {
    flex: 1;
}

.section-side-image {
    width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    flex-shrink: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5));
}

.content-section h2 {
    font-size: 48px;
    color: #00ffff;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00ffff 0%, transparent 100%);
}

.content-section h3 {
    font-size: 28px;
    color: #00ffff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-section h4 {
    font-size: 22px;
    color: #00dddd;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 900px;
}

.content-section ul,
.content-section ol {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.content-section ul li,
.content-section ol li {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.content-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00ffff;
    font-size: 20px;
    font-weight: bold;
}

.content-section ol {
    counter-reset: item;
}

.content-section ol li {
    counter-increment: item;
}

.content-section ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 0;
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
}

/* Areas Grid */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.area-card {
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.area-card:hover::before {
    opacity: 1;
}

.area-card h3 {
    font-size: 24px;
    color: #00ffff;
    margin-bottom: 15px;
    position: relative;
    margin-top: 0;
}

.area-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Sponsor Benefits */
.benefit-item {
    background: rgba(0, 255, 255, 0.03);
    border-left: 4px solid #00ffff;
    padding: 25px 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(0, 255, 255, 0.08);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.15);
}

.benefit-item h4 {
    margin-top: 0;
    color: #00ffff;
}

/* Contact Section */
.contact-info {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    margin-top: 30px;
    max-width: 700px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info strong {
    color: #00ffff;
}

.contact-details {
    margin: 25px 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.contact-details:last-of-type {
    border-bottom: none;
}

.address-line {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0;
    line-height: 1.8;
}

.email-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 10px;
}

.email-copy:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.email-copy.copied {
    background: rgba(0, 255, 100, 0.2);
    border-color: rgba(0, 255, 100, 0.5);
    color: #00ff66;
}

/* Footer */
footer {
    background: #000000;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding: 40px;
    text-align: center;
    margin: 0;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
}

footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .side-nav {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
        padding: 30px;
    }
    
    section {
        padding: 80px 30px;
    }
    
    .hero h2 {
        font-size: 52px;
    }
    
    .content-section h2 {
        font-size: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .side-nav {
        transform: translateX(-280px);
        width: 280px;
    }
    
    .side-nav.active {
        transform: translateX(0);
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .section-header-with-image {
        flex-direction: column;
        align-items: center;
    }
    
    .section-side-image {
        width: 250px;
        order: -1;
    }
    
    .hero-welcome {
        font-size: 32px;
    }
    
    .hero-tagline {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-earth-image {
        max-width: 350px;
    }
    
    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        position: fixed;
        top: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        background: rgba(0, 255, 255, 0.1);
        border: 2px solid rgba(0, 255, 255, 0.3);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(0, 255, 255, 0.2);
        border-color: #00ffff;
    }
    
    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        background: #00ffff;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    section {
        padding: 80px 20px;
        min-height: auto;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 120px;
    }
    
    .hero h2 {
        font-size: 40px;
    }
    
    .hero-earth-image {
        max-width: 350px;
    }
    
    .hero-welcome {
        font-size: 32px;
    }
    
    .hero-tagline {
        font-size: 24px;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
    }
    
    .section-side-image {
        width: 200px;
    }
    
    .content-section h2 {
        font-size: 32px;
    }
    
    .content-section h3 {
        font-size: 24px;
    }
    
    .content-section h4 {
        font-size: 20px;
    }
    
    .content-section p,
    .content-section ul li,
    .content-section ol li {
        font-size: 16px;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
    
    footer {
        padding: 30px 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 32px;
    }
    
    .hero-earth-image {
        max-width: 280px;
    }
    
    .hero-welcome {
        font-size: 28px;
    }
    
    .hero-tagline {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .logo-full {
        width: 140px;
    }
    
    .footer-logo {
        width: 150px;
    }
    
    .section-icon {
        width: 35px;
        height: 35px;
    }
    
    .section-side-image {
        width: 180px;
    }
    
    .section-header {
        gap: 10px;
    }
}

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-overlay {
        display: none !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-cyan {
    color: #00ffff;
}

.text-gradient {
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   RTL LANGUAGE SUPPORT (Arabic)
   ============================================ */
[dir="rtl"] .side-nav {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid rgba(0, 255, 255, 0.1);
}

[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: 280px;
}

[dir="rtl"] .nav-menu a {
    border-left: none;
    border-right: 3px solid transparent;
}

[dir="rtl"] .nav-menu a:hover {
    border-left: none;
    border-right-color: #00ffff;
    padding-left: 30px;
    padding-right: 35px;
}

[dir="rtl"] .nav-menu a.active {
    border-left: none;
    border-right-color: #00ffff;
}

[dir="rtl"] .section-header-with-image {
    flex-direction: row-reverse;
}

[dir="rtl"] .benefit-item {
    border-left: none;
    border-right: 4px solid #00ffff;
}

@media (max-width: 1024px) {
    [dir="rtl"] .main-content {
        margin-right: 240px;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .side-nav {
        right: auto;
        left: 0;
        transform: translateX(-280px);
    }
    
    [dir="rtl"] .side-nav.active {
        transform: translateX(0);
    }
    
    [dir="rtl"] .main-content {
        margin-right: 0;
    }
}

/* ============================================
   COMPANY PAGE STYLES
   ============================================ */
.company-info-container {
    max-width: 900px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.company-table tr {
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.company-table tr:last-child {
    border-bottom: none;
}

.company-table th,
.company-table td {
    padding: 20px 25px;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 180px;
    font-weight: 600;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
    white-space: nowrap;
}

.company-table td {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.8;
}

.address-postal {
    display: inline-block;
    margin-bottom: 8px;
    font-family: monospace;
}

.email-link {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #00dddd;
    text-decoration: underline;
}

.company-description {
    margin: 60px 0;
    padding: 40px;
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
}

.company-description h2 {
    font-size: 32px;
    color: #00ffff;
    margin-bottom: 25px;
    font-weight: 600;
}

.company-description p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.back-to-top {
    margin-top: 60px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #00ffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* Company Page Responsive */
@media (max-width: 768px) {
    .company-table {
        font-size: 14px;
    }
    
    .company-table th {
        width: 120px;
        padding: 15px;
        font-size: 13px;
    }
    
    .company-table td {
        padding: 15px;
        font-size: 14px;
    }
    
    .company-description {
        padding: 25px 20px;
    }
    
    .company-description h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 12px 15px;
    }
    
    .company-table th {
        background: rgba(0, 255, 255, 0.08);
        border-bottom: none;
        padding-bottom: 8px;
    }
    
    .company-table td {
        padding-top: 8px;
        padding-bottom: 20px;
    }
    
    .company-table tr {
        display: block;
        margin-bottom: 10px;
    }
}
/* モバイル表示のテキスト重なり修正 */
@media (max-width: 768px) {
    .hero-welcome {
        font-size: 28px !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }
    
    .hero-tagline {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }
    
    .hero-description {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-top: 20px !important;
    }
    
    .hero-content {
        padding: 20px !important;
        margin-top: 80px !important;
    }
}