:root {
    --bg-color: #0a0a0f;
    --bg-secondary: #13131f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --font-main: 'Outfit', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn i {
    margin-left: 10px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 100;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-link {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.1) 0%, rgba(10, 10, 15, 0) 70%);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-main);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Sections General */
.section {
    padding: 100px 0;
}

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

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

.section-tag {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Vision */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.vision-heading {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, white, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-text {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.values-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.values-list i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-top: 5px;
}

.values-list strong {
    display: block;
    font-family: var(--font-main);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.values-list p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.image-wrapper {
    position: relative;
    width: 100%;
    /* height: auto;  Let image define height */
    border-radius: 20px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.gradient-1 {
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Profile */
.profile-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.profile-image {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* aspect-ratio: 16/9;  Removed to allow natural image shape */
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
}

/* Skill Grid for Side-by-Side Layout */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.skill-column h4 {
    margin-bottom: 20px;
    min-height: 2em;
    /* Align headers */
}

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

    .profile-image {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Strengths & Profile World Class Design */

/* Strength Items Overhaul - Revert to simple/original style but keep flex structure compatible with new HTML */
.strengths-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.strength-item {
    display: flex;
    flex-direction: row;
    /* Back to row */
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, transparent 100%);
    border: none;
    border-left: 2px solid var(--accent-primary);
    border-radius: 0 20px 20px 0;
    backdrop-filter: none;
    overflow: visible;
}

.strength-item::before {
    display: none;
}

.strength-item:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--accent-primary);
    /* Keep border color */
}

.strength-number {
    font-family: var(--font-main);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    -webkit-text-stroke: 0;
    margin-bottom: 0;
    line-height: 1;
    z-index: 1;
}

.strength-item:hover .strength-number {
    -webkit-text-stroke: 0;
    opacity: 1;
}

.strength-content {
    z-index: 1;
    width: 100%;
}

.strength-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    -webkit-background-clip: border-box;
    color: white;
}

.strength-role {
    display: block;
    font-size: 1rem;
    color: white;
    /* Original white */
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: normal;
}

.strength-content p:not(.strength-role) {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Certifications inside Strengths - Simplify */
.certifications {
    margin: 15px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.certifications h4 {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 5px;
    opacity: 0.9;
}

/* Achievements - Restore deleted styles */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.achievement-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.card-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.category {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.8;
}

.card-header h4 {
    font-size: 1.2rem;
    line-height: 1.4;
    min-height: 1.4em;
}

.card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.stat {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.stat .value {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: auto;
}

/* AI Specialist Section Enhancement */
#profile-ai-architect {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(19, 19, 31, 0.5) 100%);
}

.skills h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills h4::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

/* Skill List (Flexbox for alignment) */
.skill-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.skill-list li i {
    margin-top: 4px;
    /* Align icon with first line of text */
    flex-shrink: 0;
    /* font-size set via element or usually 1rem, adjust if needed */
}

.skill-text {
    flex-grow: 1;
}

.skill-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.skill-list li strong {
    color: #fff;
}

/* Team Page Specifics */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.05) 0%, rgba(10, 10, 15, 0) 70%);
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.team-cta {
    background: var(--bg-secondary);
}

/* Unique Value Grid */
.unique-value-container {
    margin-top: 40px;
}

.unique-value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .unique-value-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Strength Tags / Tech Tags */
.strength-tags,
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag,
.tech-tags span {
    font-family: var(--font-main);
    font-size: 0.75rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.tag:hover,
.tech-tags span:hover {
    background: rgba(0, 242, 255, 0.1);
    color: white;
    border-color: var(--accent-primary);
}

/* Contact */
.contact-box {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    padding: 80px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.contact-box .btn {
    background: white;
    color: var(--accent-secondary);
}

.contact-box .btn:hover {
    background: var(--bg-color);
    color: white;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-main);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .vision-grid,
    .profile-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .image-wrapper,
    .profile-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        /* Widescreen for mobile */
    }

    .nav-list {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .contact-box {
        padding: 40px;
    }

    .contact-title {
        font-size: 2rem;
    }
}

/* Contact Form Page Specifics */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: var(--font-main);
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    color: white;
    font-family: var(--font-jp);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.form-submit button {
    width: 100%;
    max-width: 300px;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 30px;
    }
}

/* Service Card Link Styles */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-card-link:hover .service-card {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card-link:hover .read-more {
    color: var(--accent-primary);
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.read-more i {
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.service-card-link:hover .read-more i {
    margin-left: 10px;
}