/* Modern UI/UX Styling */
:root {
    --primary-color: #1a237e;    /* Darker blue */
    --secondary-color: #d32f2f;  /* Brighter red */
    --accent-color: #1976d2;     /* Bright blue */
    --text-color: #000000;       /* Pure black for text */
    --light-bg: #070606;         /* Light gray background */
    --icon-size: 1.2rem;
    --icon-spacing: 0.5rem;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --logo-size: 24px;
    --navbar-height: 60px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: var(--navbar-height);
    font-weight: 500;
}

/* Text Styling */
p, li, td {
    color: #000000;
    font-weight: 500;
}

.lead {
    color: #000000;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Card Text */
.card-text {
    color: #000000;
    font-weight: 500;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Section Headers */
h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
}

h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Navbar Text */
.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #cccccc !important;
}

.nav-link .bi {
    color: #ffffff;
    transition: color 0.3s ease;
}

.nav-link:hover .bi {
    color: #cccccc;
}

/* Table Text */
.table {
    color: #000000;
}

.table thead th {
    color: #ffffff;
    font-weight: 600;
}

.table td {
    color: #000000;
    font-weight: 500;
}

/* List Items */
.list-group-item {
    color: #000000;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Contact Info */
.contact-info p {
    color: #000000;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Business Hours */
.business-hours h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.business-hours p {
    color: #000000;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Footer Text */
footer {
    color: #ffffff;
}

footer h5 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2rem;
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Badge Text */
.badge {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Button Text */
.btn {
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #d32f2f;
    border: none;
}

.btn-danger:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

/* Main Content Spacing */
.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Header Spacing */
header {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

/* Section Spacing */
section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

section:last-child {
    margin-bottom: 0;
}

/* Card Spacing */
.card {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:last-child {
    margin-bottom: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Navbar Styling */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: var(--navbar-height);
    padding: 0.5rem 0;
}

/* Carousel Spacing */
#deraCarousel {
    margin-bottom: 2rem;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Spacing */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-color: var(--primary-color) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    :root {
        --navbar-height: 56px;
    }
    
    .main-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    section {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    header {
        margin-top: 0.5rem;
        margin-bottom: 2rem;
    }
}

/* Navbar Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

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

.nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

/* Section Styling */
section {
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Card Styling */
.card {
    background-color: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
}

/* Table Styling */
.table {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Button Styling */
.btn {
    border-radius: 20px;
    padding: 0.4rem 1.5rem;
    font-weight: 500;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #ece4e4;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Icon Styling */
.bi {
    font-size: var(--icon-size);
    vertical-align: middle;
    margin-right: var(--icon-spacing);
    color: var(--accent-color);
}

/* Section Icons */
section h2 .bi {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 0.75rem;
}

/* Card Icons */
.card-title .bi {
    color: var(--accent-color);
}

/* List Icons */
.list-group-item .bi {
    color: var(--accent-color);
}

/* Social Media Icons */
.social-links .bi {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links .bi:hover {
    transform: scale(1.2);
}

/* Feature Icons */
.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Service Icons */
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Contact Icons */
.contact-info .bi {
    color: var(--accent-color);
    width: 1.5rem;
    text-align: center;
}

/* Button Icons */
.btn .bi {
    margin-right: 0.5rem;
}

/* Navbar Icons */
.navbar .bi {
    font-size: 1.1rem;
}

/* Footer Icons */
footer .bi {
    font-size: 1.3rem;
}

/* List Group Styling */
.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 1rem;
    background-color: rgb(240, 230, 230);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Badge Styling */
.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    border-radius: 12px;
}

.badge.bg-success {
    background-color: #2e7d32 !important;
}

/* Social Links */
.social-links a {
    color: rgba(255,255,255,0.9) !important;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #313133 !important;
    transform: translateY(-3px);
}

/* Logo Styling */
.logo-img {
    height: var(--logo-size);
    width: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
    object-fit: contain;
}

/* Carousel Logo Styling */
#deraCarousel .carousel-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* Navigation Items Styling */
.nav-item .nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.nav-item .nav-link .bi {
    color: #ffffff;
    transition: color 0.3s ease;
}

/* Location Navigation Item */
.nav-item:first-child .nav-link {
    color: #ff6b6b !important;
}

.nav-item:first-child .nav-link .bi {
    color: #ff6b6b;
}

.nav-item:first-child .nav-link:hover {
    color: #ff8787 !important;
}

.nav-item:first-child .nav-link:hover .bi {
    color: #ff8787;
}

/* Video Class Navigation Item */
.nav-item:nth-child(2) .nav-link {
    color: #4dabf7 !important;
}

.nav-item:nth-child(2) .nav-link .bi {
    color: #4dabf7;
}

.nav-item:nth-child(2) .nav-link:hover {
    color: #74c0fc !important;
}

.nav-item:nth-child(2) .nav-link:hover .bi {
    color: #74c0fc;
}

/* Esports Navigation Item */
.nav-item:nth-child(3) .nav-link {
    color: #51cf66 !important;
}

.nav-item:nth-child(3) .nav-link .bi {
    color: #51cf66;
}

.nav-item:nth-child(3) .nav-link:hover {
    color: #69db7c !important;
}

.nav-item:nth-child(3) .nav-link:hover .bi {
    color: #69db7c;
}

/* Other Services Navigation Item */
.nav-item:nth-child(4) .nav-link {
    color: #ffd43b !important;
}

.nav-item:nth-child(4) .nav-link .bi {
    color: #ffd43b;
}

.nav-item:nth-child(4) .nav-link:hover {
    color: #fcc419 !important;
}

.nav-item:nth-child(4) .nav-link:hover .bi {
    color: #fcc419;
}

/* SNS Navigation Item */
.nav-item:nth-child(5) .nav-link {
    color: #cc5de8 !important;
}

.nav-item:nth-child(5) .nav-link .bi {
    color: #cc5de8;
}

.nav-item:nth-child(5) .nav-link:hover {
    color: #da77f2 !important;
}

.nav-item:nth-child(5) .nav-link:hover .bi {
    color: #da77f2;
}

/* Active Navigation Item */
.nav-link.active {
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

#class {
  background: #e8f5e9;
}

#esports {
  background: #ffebee;
}

#services {
  background: #fff8e1;
}

#programming {
  background: #e3f2fd;
}

#studio {
  background: #fce4ec;
}
