/* Reset and 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;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    background: #000000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title::after {
  content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: #cccccc;
    margin-bottom: 3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
  width: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.2rem 0;
    border-bottom: 2px solid #ffffff;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.99);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.15);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 45px;
    height: 45px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
  position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: #ffffff;
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.hamburger {
  display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 28px;
    height: 4px;
    background: #ffffff;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: titleSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    position: relative;
    overflow: hidden;
}

.title-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.6s;
}

.title-line:nth-child(3) {
  animation-delay: 1s;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
  line-height: 1.6;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
}

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

.hero-buttons {
  display: flex;
    gap: 1.5rem;
  flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2s;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
  width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.hero-visual {
    position: relative;
    height: 450px;
    opacity: 0;
    animation: fadeInRight 1.5s ease forwards 1s;
}

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

.floating-elements {
  position: relative;
  width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.floating-element:nth-child(2) {
    top: 55%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 8s;
    width: 100px;
    height: 100px;
}

.floating-element:nth-child(3) {
    bottom: 15%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 7s;
    width: 140px;
    height: 140px;
}

.floating-element:nth-child(4) {
    top: 25%;
    right: 25%;
    animation-delay: 1s;
    animation-duration: 9s;
    width: 80px;
    height: 80px;
}

.floating-element:nth-child(5) {
    bottom: 35%;
    right: 35%;
    animation-delay: 3s;
    animation-duration: 10s;
    width: 90px;
    height: 90px;
}

.floating-element:nth-child(6) {
    top: 70%;
    left: 25%;
    animation-delay: 5s;
    animation-duration: 11s;
    width: 70px;
    height: 70px;
}

.floating-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.floating-element::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 4s linear infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        filter: brightness(1) hue-rotate(0deg);
    }
    25% { 
        transform: translateY(-25px) rotate(90deg) scale(1.15); 
        filter: brightness(1.2) hue-rotate(90deg);
    }
    50% { 
        transform: translateY(-40px) rotate(180deg) scale(1.05); 
        filter: brightness(0.9) hue-rotate(180deg);
    }
    75% { 
        transform: translateY(-20px) rotate(270deg) scale(1.1); 
        filter: brightness(1.1) hue-rotate(270deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

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

/* ホバー効果 */
.floating-element:hover {
    transform: scale(1.2) rotate(15deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation-play-state: paused;
}

.floating-element:hover::before {
    animation: pulse 1s ease-in-out infinite;
}

.floating-element:hover::after {
    animation: rotate 2s linear infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    text-align: center;
  opacity: 0;
    animation: fadeIn 1s ease forwards 3s;
}

.scroll-arrow {
    width: 35px;
    height: 35px;
    border: 3px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-15px) rotate(45deg); }
    60% { transform: translateY(-8px) rotate(45deg); }
}

/* Sections */
section {
    padding: 8rem 0;
}

.about {
    background: #111111;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-text p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 400;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.stat-item {
  text-align: center;
    padding: 1.5rem;
    background: #000000;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #333333;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

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

.about-img {
    max-width: 100%;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.about-img:hover {
    transform: scale(1.02);
}

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

.service-card {
    background: #000000;
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #333333;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
  width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 1;
    transform: scale(1.1);
}

.service-icon img {
    width: 45px;
    height: 45px;
    filter: brightness(0) invert(0);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card p {
    color: #cccccc;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Technology */
.technology {
    background: #111111;
}

.tech-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.tech-item {
    background: #000000;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #333333;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.tech-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #ffffff;
    border-radius: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon::after {
    opacity: 1;
    transform: scale(1.1);
}

.tech-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(0);
}

.tech-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-item p {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact */
.contact {
    background: #ffffff;
    color: #000000;
}

.contact .section-title,
.contact .section-subtitle {
    color: #000000;
}

.contact .section-title::after {
    background: #000000;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.7;
    font-weight: 400;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
    gap: 1.5rem;
    font-size: 1.2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.8rem;
}

.contact-form {
    background: rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-form:hover {
    border-color: rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 2rem;
}

.form input,
.form textarea {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.form input::placeholder,
.form textarea::placeholder {
    color: #666666;
    font-weight: 400;
}

.btn-full {
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.5rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #000000;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section ul li a {
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: #000000;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 2px solid #cccccc;
    color: #666666;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(255, 255, 255, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 0.05em;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-grid,
    .tech-showcase {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .logo-text {
        font-size: 1rem;
        letter-spacing: 0.03em;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

/* Custom AOS animations */
[data-aos="float"] {
    animation: float 6s ease-in-out infinite;
}

/* Additional hover effects */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.tech-item:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Smooth transitions for all interactive elements */
a, button, .service-card, .tech-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
	}
}
