/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Elegant White Base Variables */
    --bg-color: #FFFFFF;
    --section-bg-alt: #FAFAFC; /* Subtle gray background for alternating sections */
    --text-color: #1A1A1A; /* Crisp dark gray for superior readability */
    --text-muted: #666666; /* Elegant subdued text */
    --accent-primary: #0088CC; /* Sophisticated, corporate clear blue */
    --accent-secondary: #0055AA;
    
    /* Elegant glass & shadow */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-bg-hover: rgba(255, 255, 255, 1);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glow-spread: rgba(0, 136, 204, 0.15);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    
    --font-en: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-base: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-en {
    font-family: var(--font-en);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

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

ul {
    list-style: none;
}

.color-accent {
    color: var(--accent-primary);
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.container-narrow {
    max-width: 900px;
}
.container-medium {
    max-width: 800px;
}
.text-center {
    text-align: center;
}

/* Typography */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.section-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    font-family: var(--font-en);
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Loader */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}
.loader-content {
    text-align: center;
}
.loader-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--glass-border);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 3px;
}
.loader-bar::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: var(--accent-primary);
    animation: loadingBar 1.5s ease-in-out infinite;
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-base);
}
.header.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Header Text Color rules based on scroll & background */
/* When hero is active (not scrolled) and background is dark image, text is white */
.header:not(.scrolled) .nav a {
    color: #FFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/* When scrolled, background is white, text is dark */
.header.scrolled .nav a {
    color: var(--text-color);
    text-shadow: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-color);
}
.header-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
}
.header:not(.scrolled) .logo {
    color: #FFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-fast);
}
.nav a:hover::after {
    width: 100%;
}
.btn-contact {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--accent-primary) !important;
    border-radius: 30px;
}
.header:not(.scrolled) .btn-contact {
    border-color: #FFF !important;
    color: #FFF !important;
}
.header.scrolled .btn-contact {
    color: var(--accent-primary) !important;
}
.btn-contact::after {
    display: none;
}
.btn-contact:hover {
    background: var(--accent-primary) !important;
    color: #FFF !important;
    box-shadow: 0 4px 15px var(--glow-spread);
    border-color: var(--accent-primary) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition-fast);
}
.header:not(.scrolled) .mobile-menu-btn span {
    background: #FFF;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    object-fit: cover;
    transform: translate(-50%, -50%);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Subtle dark gradient overlay to ensure white text is readable on images */
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,136,204,0.2) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 5rem;
}
.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-family: var(--font-jp);
    color: #FFF;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    opacity: 0.9;
}
.scroll-indicator span {
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #FFF;
}
.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}
.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 100%;
    background: #FFF;
    animation: scrollDrop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* Base Section */
.section {
    padding: 8rem 0;
    position: relative;
}

/* News Section */
.news-section {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(250, 250, 252, 0.5));
    border-bottom: 1px solid var(--border-color);
    padding-top: 3rem; /* 上部余白を短縮 */
}
.news-list {
    border-top: 1px solid var(--glass-border);
}
.news-item {
    display: flex;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.news-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background: linear-gradient(90deg, rgba(0,136,204,0.03), transparent);
    transition: var(--transition-base);
    z-index: 0;
}
.news-item:hover::before {
    width: 100%;
}
.news-item:hover {
    padding-left: 1rem;
}
.news-date {
    font-family: var(--font-en);
    color: var(--text-muted);
    width: 120px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.news-category {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-right: 2rem;
    position: relative;
    z-index: 1;
    font-weight: 600;
}
.tag-press {
    background: #F0F0F0;
    color: #333;
}
.tag-service {
    background: rgba(0, 136, 204, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 136, 204, 0.2);
}
.news-text {
    flex-grow: 1;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}
.news-arrow {
    color: var(--accent-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-base);
}
.news-item:hover .news-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* About Philosophy */
.about-section {
    background-color: transparent;
    padding-top: 2rem;
    padding-bottom: 3rem; /* 下部余白を短縮 */
}
.philosophy-content {
    margin-top: 2rem;
}
.philosophy-block {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}
.philosophy-block:hover {
    border-color: rgba(0, 136, 204, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
.ph-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}
.ph-title .highlight {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent-primary);
    opacity: 0.8;
}
.philosophy-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}
.philosophy-block strong.color-accent {
    font-weight: 700;
}

/* Cyber Wave effect adapted to elegant light */
.cyber-wave-bg {
    position: absolute;
    bottom: -150px; left: 0;
    width: 100%; height: 300px;
    background: radial-gradient(ellipse at center, rgba(0,136,204,0.06) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

/* Services */
.services-section {
    background: rgba(250, 250, 252, 0.6);
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem; /* 下部余白を短縮 */
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}
.service-card {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1rem;
    padding-bottom: 8rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 150px; height: 150px;
    background: radial-gradient(circle, var(--glow-spread) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 136, 204, 0.3);
    box-shadow: var(--shadow-hover);
}
.service-card:hover::after {
    opacity: 1;
}
.service-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(0, 136, 204, 0.08);
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 136, 204, 0.15);
}
.icon-number {
    font-family: var(--font-en);
    color: var(--accent-primary);
    font-size: 1.2rem;
    font-weight: 700;
}
.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-color);
}
.service-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.service-feature {
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.service-feature strong {
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

/* Company Section */
.company-section {
    background: transparent;
    padding-top: 3rem;
    padding-bottom: 3rem; /* 下部余白を短縮 */
}
.border-top-glow {
    position: relative;
    padding-top: 4rem;
}
.border-top-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,136,204,0.3), transparent);
}
.company-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.message-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 3rem;
    color: var(--text-color);
}
.message-body h4 {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.message-body p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.message-conclusion {
    font-weight: 700;
    color: var(--text-color) !important;
    font-size: 1.1rem;
    border-left: 3px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin-top: 3rem;
}

.glass-panel {
    background: var(--section-bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}
.panel-title {
    font-family: var(--font-en);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    font-weight: 700;
}
.info-list dt {
    font-weight: 700;
    color: var(--text-color);
    margin-top: 1rem;
    font-size: 0.9rem;
}
.info-list dd {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.clean-list {
    list-style-type: none;
    padding-left: 0;
}
.clean-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
}
.clean-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(to bottom, rgba(250, 250, 252, 0.6), rgba(238, 238, 242, 0.6));
    padding-top: 3rem; /* 上部余白を短縮 */
}
.contact-form {
    padding: 3.5rem;
    background: #FFFFFF;
}
.form-group {
    margin-bottom: 2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}
.required {
    color: #E63946;
    margin-left: 0.3rem;
}
input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition-base);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%; right: 1rem;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--text-color);
    color: #FFFFFF;
    border: none;
    padding: 1.2rem 3.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* 送信成功メッセージ */
.form-success-msg {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: rgba(0, 136, 204, 0.08);
    border: 1px solid rgba(0, 136, 204, 0.25);
    border-radius: 10px;
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ハニーポット（スパム対策）: 完全非表示 */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Footer */
.footer {
    background: #1A1A1A; /* Keep footer dark for solid foundation */
    padding: 4rem 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-logo {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.2rem;
    color: #FFF;
}
.footer-copy {
    color: #999999;
    font-size: 0.8rem;
    font-family: var(--font-en);
}

/* フッターナビゲーション */
.footer-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.footer-nav a {
    color: #AAAAAA;
    font-size: 0.85rem;
    font-family: var(--font-jp);
    transition: var(--transition-fast);
    letter-spacing: 0.05em;
}
.footer-nav a:hover {
    color: #FFFFFF;
}

/* Bubbles Background Layer */
.bubbles-layer {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* デジタルグリッド（白背景用） */
.bg-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(0, 136, 204, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 136, 204, 0.06) 1px, transparent 1px);
    background-size: 55px 55px;
    animation: bgGridScroll 80s linear infinite;
}

/* 回路ライン（白背景用） */
.bg-circuits span {
    position: absolute;
    height: 1.5px;
    width: 350px;
    background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.3), rgba(0, 136, 204, 0.1), transparent);
    animation: bgCircuit 12s ease-in-out infinite;
}
.bg-circuits span:nth-child(1) { top: 22%; animation-delay: 0s; }
.bg-circuits span:nth-child(2) { top: 58%; animation-delay: 4s; }
.bg-circuits span:nth-child(3) { top: 85%; animation-delay: 8s; }

@keyframes bgGridScroll {
    from { background-position: 0 0; }
    to { background-position: 550px 550px; }
}

@keyframes bgCircuit {
    0% { left: -350px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 136, 204, 0.15), rgba(0, 136, 204, 0.05));
    border: 1.5px solid rgba(0, 136, 204, 0.25);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 136, 204, 0.1), 0 2px 8px rgba(0, 136, 204, 0.08);
    animation: bubbleRise 15s infinite ease-in;
}

/* Base bubble variations - 20 items */
.bubble:nth-child(1) { width: 40px; height: 40px; left: 5%; animation-duration: 18s; animation-delay: 0s; }
.bubble:nth-child(2) { width: 25px; height: 25px; left: 15%; animation-duration: 12s; animation-delay: 2s; }
.bubble:nth-child(3) { width: 50px; height: 50px; left: 25%; animation-duration: 20s; animation-delay: 4s; }
.bubble:nth-child(4) { width: 15px; height: 15px; left: 35%; animation-duration: 10s; animation-delay: 1s; }
.bubble:nth-child(5) { width: 35px; height: 35px; left: 45%; animation-duration: 15s; animation-delay: 5s; }
.bubble:nth-child(6) { width: 25px; height: 25px; left: 55%; animation-duration: 13s; animation-delay: 3s; }
.bubble:nth-child(7) { width: 45px; height: 45px; left: 65%; animation-duration: 17s; animation-delay: 7s; }
.bubble:nth-child(8) { width: 30px; height: 30px; left: 75%; animation-duration: 14s; animation-delay: 8s; }
.bubble:nth-child(9) { width: 55px; height: 55px; left: 85%; animation-duration: 22s; animation-delay: 2s; }
.bubble:nth-child(10) { width: 20px; height: 20px; left: 95%; animation-duration: 11s; animation-delay: 6s; }
.bubble:nth-child(11) { width: 30px; height: 30px; left: 12%; animation-duration: 16s; animation-delay: 3s; }
.bubble:nth-child(12) { width: 60px; height: 60px; left: 28%; animation-duration: 19s; animation-delay: 1s; }
.bubble:nth-child(13) { width: 18px; height: 18px; left: 42%; animation-duration: 14s; animation-delay: 5s; }
.bubble:nth-child(14) { width: 42px; height: 42px; left: 58%; animation-duration: 21s; animation-delay: 2s; }
.bubble:nth-child(15) { width: 33px; height: 33px; left: 72%; animation-duration: 13s; animation-delay: 4s; }
.bubble:nth-child(16) { width: 22px; height: 22px; left: 88%; animation-duration: 15s; animation-delay: 0.5s; }
.bubble:nth-child(17) { width: 48px; height: 48px; left: 3%; animation-duration: 24s; animation-delay: 7s; }
.bubble:nth-child(18) { width: 26px; height: 26px; left: 92%; animation-duration: 12s; animation-delay: 9s; }
.bubble:nth-child(19) { width: 38px; height: 38px; left: 22%; animation-duration: 17s; animation-delay: 4s; }
.bubble:nth-child(20) { width: 52px; height: 52px; left: 62%; animation-duration: 20s; animation-delay: 1s; }

@keyframes bubbleRise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    30% {
        transform: translateY(-30vh) translateX(30px);
    }
    60% {
        transform: translateY(-60vh) translateX(-30px);
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-120vh) translateX(0);
        opacity: 0;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.98); opacity: 0.7; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(0.98); opacity: 0.7; }
}
@keyframes loadingBar {
    0% { left: -50%; }
    100% { left: 100%; }
}
@keyframes scrollDrop {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-text {
    opacity: 0;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-text.active {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .services-grid,
    .company-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0; left: 100%;
        width: 100%; height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: var(--transition-base);
    }
    .header:not(.scrolled) .nav {
        background: rgba(0,0,0,0.95);
    }
    .nav.active {
        left: 0;
    }
    .nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .nav a {
        font-size: 1.5rem;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .news-category {
        margin-right: 0;
    }
    .news-arrow {
        display: none;
    }
    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Image Modal & Button Styles */
.service-image-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    display: inline-block;
}

.service-image-btn img {
    display: block;
    height: auto;
    max-width: 140px;
    transition: transform var(--transition-fast);
}

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

.service-image-btn:hover img {
    filter: brightness(1.1);
}

.service-card {
    position: relative;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    animation: fadeIn 0.3s ease-out;
}

.image-modal-content {
    position: relative;
    z-index: 10000;
    max-width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: floatIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 10px;
}

.image-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
}

.image-modal-close:hover {
    transform: rotate(90deg);
    background: var(--accent-primary);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        padding: 15px;
    }

    .image-modal-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .service-image-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        bottom: 1rem;
        right: 1rem;
    }
}
