/* ==========================================
   OKOSU - Main Stylesheet
   ========================================== */

/* ==========================================
   Reset & Variables
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #ffffff;
    --dark-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --light-gray: #999999;
    --silver: #666666;
    --white: #000000;
    --accent: #333333;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--primary-black);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
}

/* ==========================================
   Custom Cursor
   ========================================== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transition: transform 0.1s ease;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transition: transform 0.3s ease;
    z-index: 9998;
}

/* ==========================================
   Loading Screen
   ========================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 0.8s ease 1.5s forwards;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loading-logo {
    font-size: 80px;
    font-weight: bold;
    letter-spacing: 15px;
    position: relative;
    animation: glitch 0.5s infinite;
    color: var(--white);
}

.loading-logo::before,
.loading-logo::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-black);
}

.loading-logo::before {
    left: 2px;
    text-shadow: -3px 0 rgba(0, 0, 0, 0.8);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.loading-logo::after {
    left: -2px;
    text-shadow: -3px 0 rgba(0, 0, 0, 0.6), 3px 3px rgba(0, 0, 0, 0.4);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow:
            3px 0 0 rgba(0, 0, 0, 0.7),
            -3px 0 0 rgba(0, 0, 0, 0.7);
    }
    20% {
        transform: translate(-2px, 2px);
        text-shadow:
            3px 0 0 rgba(0, 0, 0, 0.7),
            -3px 0 0 rgba(0, 0, 0, 0.7);
    }
    40% {
        transform: translate(-2px, -2px);
        text-shadow:
            -3px 0 0 rgba(0, 0, 0, 0.7),
            3px 0 0 rgba(0, 0, 0, 0.7);
    }
    60% {
        transform: translate(2px, 2px);
        text-shadow:
            -3px 0 0 rgba(0, 0, 0, 0.7),
            3px 0 0 rgba(0, 0, 0, 0.7);
    }
    80% {
        transform: translate(2px, -2px);
        text-shadow:
            3px 0 0 rgba(0, 0, 0, 0.7),
            -3px 0 0 rgba(0, 0, 0, 0.7);
    }
    100% {
        transform: translate(0);
        text-shadow:
            3px 0 0 rgba(0, 0, 0, 0.7),
            -3px 0 0 rgba(0, 0, 0, 0.7);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(61px, 9999px, 85px, 0);
    }
    5% {
        clip: rect(33px, 9999px, 48px, 0);
    }
    10% {
        clip: rect(68px, 9999px, 120px, 0);
    }
    15% {
        clip: rect(15px, 9999px, 90px, 0);
    }
    20% {
        clip: rect(95px, 9999px, 30px, 0);
    }
    25% {
        clip: rect(45px, 9999px, 75px, 0);
    }
    30% {
        clip: rect(10px, 9999px, 100px, 0);
    }
    35% {
        clip: rect(80px, 9999px, 25px, 0);
    }
    40% {
        clip: rect(20px, 9999px, 110px, 0);
    }
    45% {
        clip: rect(70px, 9999px, 40px, 0);
    }
    50% {
        clip: rect(35px, 9999px, 95px, 0);
    }
    55% {
        clip: rect(90px, 9999px, 15px, 0);
    }
    60% {
        clip: rect(5px, 9999px, 105px, 0);
    }
    65% {
        clip: rect(75px, 9999px, 35px, 0);
    }
    70% {
        clip: rect(25px, 9999px, 85px, 0);
    }
    75% {
        clip: rect(100px, 9999px, 20px, 0);
    }
    80% {
        clip: rect(40px, 9999px, 70px, 0);
    }
    85% {
        clip: rect(65px, 9999px, 45px, 0);
    }
    90% {
        clip: rect(30px, 9999px, 80px, 0);
    }
    95% {
        clip: rect(85px, 9999px, 10px, 0);
    }
    100% {
        clip: rect(50px, 9999px, 60px, 0);
    }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: var(--dark-gray);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--white), var(--silver), var(--white));
    background-size: 200% 100%;
    animation: loadingProgress 1.5s ease-in-out forwards, shimmer 1s infinite;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.loading-text {
    font-size: 14px;
    letter-spacing: 5px;
    color: var(--silver);
    animation: pulse 1.5s infinite;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ==========================================
   Navigation
   ========================================== */
/* Add Mobile Menu Button base styles (hidden on desktop) */
.mobile-menu-btn {
    display: none;
}

header nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, transparent 100%);
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideDown 1s ease 2s both;
}

footer nav {
    position: static;
    width: auto;
    padding: 0;
    background: none;
    backdrop-filter: none;
    animation: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 5px;
    position: relative;
}

.logo a img {
    transition: opacity 0.3s ease;
}

.logo a:hover img {
    opacity: 1 !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.5;
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    from {
        transform: translateY(100vh) translateX(0);
    }
    to {
        transform: translateY(-100px) translateX(100px);
    }
}

.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    opacity: 0;
    animation: heroFadeIn 1.5s ease 2.3s both;
}

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

.hero h1 {
    font-size: 80px;
    font-weight: 100;
    letter-spacing: 15px;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    display: inline-block;
    font-size: 24px;
    letter-spacing: 8px;
    color: var(--silver);
    white-space: nowrap;
    min-height: 1.2em;
}

.hero-subtitle.typing {
    border-right: 2px solid var(--white);
    padding-right: 3px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.cta-button {
    margin-top: 50px;
    padding: 15px 50px;
    background: #111111;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #333333;
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.cta-button:hover::before {
    left: 0;
}

/* ==========================================
   About Section
   ========================================== */
.about {
    padding: 150px 50px;
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--dark-gray) 50%, var(--primary-black) 100%);
    position: relative;
}

.section-title {
    font-size: 60px;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 10px;
    position: relative;
    animation: slideInFromLeft 1s ease both;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: rgba(255,255,255,0.8);
    padding: 40px;
    border: none;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease both;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,0,0,0.02) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
}

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

.about-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.about-card p {
    color: var(--silver);
    line-height: 1.8;
    letter-spacing: 1px;
}

/* VISION Card with Background Image */
.about-card-vision {
    background-image: linear-gradient(
        rgba(255, 255, 255, 0.78),
        rgba(255, 255, 255, 0.88)
    ), url('../img/vision.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 16px;
}

.about-card-vision::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 200, 100, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(240, 240, 240, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.about-card-vision h3,
.about-card-vision div,
.about-card-vision p {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    color: #222222;
}

.about-card-vision h3 span {
    color: #000000;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

/* VALUE Card with Background Image */
.about-card-value {
    background-image: linear-gradient(
        rgba(255, 255, 255, 0.78),
        rgba(255, 255, 255, 0.88)
    ), url('../img/value.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 16px;
}

.about-card-value::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(200, 170, 100, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(240, 240, 240, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.about-card-value h3,
.about-card-value div,
.about-card-value p {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    color: #222222;
}

.about-card-value h3 span {
    color: #000000;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.about-card-value:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
}

/* MISSION Card with Background Image */
.about-card-mission {
    background-image: linear-gradient(
        rgba(255, 255, 255, 0.78),
        rgba(255, 255, 255, 0.88)
    ), url('../img/mission.webp');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 16px;
}

.about-card-mission::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(100, 180, 100, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(240, 240, 240, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.about-card-mission h3,
.about-card-mission div,
.about-card-mission p {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    color: #222222;
}

.about-card-mission h3 span {
    color: #000000;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.about-card-mission:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
}

.about-card-vision:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
}

/* ==========================================
   Services Section
   ========================================== */
.services {
    padding: 150px 50px;
    background: var(--primary-black);
    position: relative;
}

.service-container {
    max-width: 1400px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    opacity: 0;
    animation: serviceFadeIn 1s ease forwards;
}

@keyframes serviceFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-item:nth-child(odd) {
    animation-name: slideFromLeft;
}

.service-item:nth-child(even) {
    animation-name: slideFromRight;
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
}

.service-content {
    flex: 1;
    padding: 50px;
}

.service-visual {
    flex: 1;
    height: 400px;
    background: rgba(255,255,255,0.6);
    border: none;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-animation {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    position: relative;
    animation: rotateOrbit 10s linear infinite;
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-core {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: pulse 2s infinite;
}

.service-content h3 {
    font-size: 36px;
    margin-bottom: 30px;
    letter-spacing: 5px;
}

.service-content p {
    color: var(--silver);
    line-height: 1.8;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 10px 0;
    color: var(--silver);
    position: relative;
    padding-left: 30px;
    animation: featureSlide 0.5s ease both;
}

@keyframes featureSlide {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.service-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--white);
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ==========================================
   Team Section
   ========================================== */
.team {
    padding: 150px 50px;
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--dark-gray) 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    position: relative;
}

.member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--light-gray) 100%);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: memberFloat 4s ease-in-out infinite;
}

@keyframes memberFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.member-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--white), transparent);
    animation: spin 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.team-member:hover .member-image::before {
    opacity: 0.3;
}

.member-name {
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.member-role {
    color: var(--silver);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    padding: 150px 50px;
    background: var(--primary-black);
    position: relative;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
    animation: formSlide 0.5s ease both;
}

@keyframes formSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    color: var(--white);
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--white);
    transform: translateY(-2px);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--silver);
    pointer-events: none;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -20px;
    font-size: 12px;
    color: var(--white);
}

.submit-button {
    padding: 15px 50px;
    background: #111111;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 3px;
    cursor: pointer;
    align-self: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

@keyframes submitPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 4px 25px rgba(0,0,0,0.25); }
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #333333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.submit-button:hover::after {
    width: 300px;
    height: 300px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* ==========================================
   Footer
   ========================================== */
footer {
    padding: 50px;
    background: var(--dark-gray);
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    list-style: none;
}

.footer-links a {
    color: var(--silver);
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
}

.social-icon:hover {
    background: #111111;
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.2) rotate(360deg);
}

.copyright {
    color: var(--silver);
    font-size: 12px;
    letter-spacing: 2px;
}

/* ==========================================
   Scroll Animations
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

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

/* ==========================================
   Background Animated Grid
   ========================================== */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1;
}

.grid-line {
    position: absolute;
    background: var(--white);
    animation: gridPulse 5s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.08; }
}

.grid-line.horizontal {
    width: 100%;
    height: 1px;
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
}

/* ==========================================
   Mobile Responsive
   ========================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 80px;
        letter-spacing: 15px;
        padding: 0 20px;
    }
    
    .hero-subtitle {
        font-size: 24px;
        letter-spacing: 8px;
        padding: 0 20px;
    }
    
    .service-item {
        flex-direction: column;
        gap: 30px;
    }
    
    .service-item:nth-child(even) {
        flex-direction: column;
    }
    
    .service-visual {
        max-width: 100% !important;
        width: 100%;
        height: 300px;
    }
    
    .service-content {
        max-width: 100%;
    }
    
    /* 代表挨拶のレスポンシブ */
    .ceo-message {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }
    
    .ceo-image {
        width: 280px !important;
        height: 280px !important;
    }
    
    .message-content {
        max-width: 100% !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    header nav {
        padding: 15px 20px;
    }
    
    .hero h1 {
        font-size: 72px;
        letter-spacing: 12px;
        padding: 0 15px;
    }

    .hero-subtitle {
        font-size: 22px;
        letter-spacing: 6px;
        padding: 0 15px;
    }
    
    .cta-button {
        padding: 15px 40px;
        font-size: 14px;
        letter-spacing: 3px;
    }
    
    .section-title {
        font-size: 36px;
        letter-spacing: 5px;
        margin-bottom: 40px;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 24px;
        position: relative;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--white);
        position: absolute;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn span:nth-child(1) { top: 0; }
    .mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .mobile-menu-btn span:nth-child(3) { bottom: 0; }

    /* Active State (X shape) */
    .mobile-menu-btn.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* Mobile Menu Overlay */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 0;
        margin: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 24px;
        font-weight: bold;
        letter-spacing: 4px;
    }

    .about,
    .services,
    .team,
    .contact {
        padding: 80px 20px;
    }
    
    .service-item {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }
    
    .service-item:nth-child(even) {
        flex-direction: column;
    }
    
    .service-visual {
        max-width: 100% !important;
        width: 100%;
        height: 250px;
    }
    
    .service-content {
        max-width: 100%;
        padding: 0;
    }
    
    .service-content h3 {
        font-size: 24px;
    }
    
    .service-content p {
        font-size: 14px;
    }
    
    .service-features {
        font-size: 13px;
    }
    
    .about-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    /* 代表挨拶のモバイル対応 */
    .message-container {
        padding: 0 20px !important;
    }
    
    .ceo-message {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    
    .ceo-image {
        width: 240px !important;
        height: 240px !important;
    }
    
    .message-content {
        max-width: 100% !important;
    }
    
    .message-text {
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
    }
    
    .message-text br {
        display: none;
    }
    
    .contact-form {
        padding: 0;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }
    
    footer {
        padding: 40px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-icons {
        gap: 15px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 52px;
        letter-spacing: 6px;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 3px;
        padding: 0 10px;
    }
    
    .loading-logo {
        font-size: 50px;
        letter-spacing: 8px;
    }
    
    .section-title {
        font-size: 28px;
        letter-spacing: 3px;
    }
    
    .service-visual {
        height: 200px;
    }
    
    .ceo-image {
        width: 200px !important;
        height: 200px !important;
    }
}

/* ==========================================
   Company Overview Page Responsive
   ========================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .overview-container {
        max-width: 90% !important;
        padding: 0 20px;
    }
    
    .overview-card {
        padding: 40px 30px !important;
    }
    
    .overview-table th {
        font-size: 14px !important;
        letter-spacing: 2px !important;
        padding: 15px 20px 15px 0 !important;
    }
    
    .overview-table td {
        font-size: 16px !important;
        letter-spacing: 1.5px !important;
        padding: 15px 0 !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #overview {
        padding-top: 120px !important;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .overview-container {
        max-width: 100% !important;
        padding: 0;
    }
    
    .overview-card {
        padding: 30px 20px !important;
    }
    
    .overview-table {
        border-spacing: 0 20px !important;
    }
    
    .overview-table tr {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .overview-table th {
        width: 100% !important;
        font-size: 13px !important;
        letter-spacing: 2px !important;
        padding: 0 0 5px 0 !important;
        border-bottom: none !important;
    }
    
    .overview-table td {
        width: 100% !important;
        font-size: 15px !important;
        letter-spacing: 1px !important;
        padding: 0 0 15px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    }
    
    .overview-table td ul {
        padding-left: 0 !important;
    }
    
    .overview-table td ul li {
        margin-bottom: 5px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    #overview {
        padding-top: 100px !important;
    }
    
    .overview-card {
        padding: 20px 15px !important;
    }
    
    .overview-table th {
        font-size: 12px !important;
        letter-spacing: 1.5px !important;
    }
    
    .overview-table td {
        font-size: 14px !important;
        letter-spacing: 0.5px !important;
        line-height: 1.6 !important;
    }
}
