
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #d63031;    
    --primary-hover: #b32324;    
    --secondary-color: #1e272e;  
    --accent-color: #f7d7da;     
    --bg-light: #fafafa;         
    --card-bg: #ffffff;
    --text-main: #1e272e;
    --text-muted: #57606f;
    --border-color: rgba(214, 48, 49, 0.04);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.dark-mode {
    --bg-light: #111827;
    --card-bg: #1f2937;
    --secondary-color: #f3f4f6;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #374151;
}

body {
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

header, .hero, .aboutMe, .works, .contentContainer, .card-link, .contact-box, .navigation ul li a, .card-link span {
    transition: var(--transition-smooth);
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    padding: 12px 0;
}

body.dark-mode header {
    background: rgba(17, 24, 39, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header .logo {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
}

header .logo:hover {
    transform: rotate(360deg) scale(1.1); 
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navigation ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.navigation ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navigation ul li a:hover::after {
    width: 100%;
}

.navigation ul li a:hover {
    color: var(--primary-color);
}

body.dark-mode .navigation ul li a:hover {
    color: #ff6b6b;
}

.theme-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    cursor:pointer;
    font-size: 18px;
    background: var(--primary-color);
    color: #fff;
    transition: var(--transition-smooth);
}

.theme-btn:hover {
    transform: scale(1.08);
    background-color: var(--primary-hover);
}

.hero {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    padding: 50px 20px;
    background: radial-gradient(circle at 80% 20%, #fff3f4 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

body.dark-mode .hero {
    background: radial-gradient(circle at 80% 20%, #1f2937 0%, #111827 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.heroSub {
    flex: 1;
    position: relative;
}

.arrow {
    position: absolute;
    top: -50px;
    left: -30px;
    width: 60px;
    animation: bounce 2s infinite; 
}

.heroSub .name {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
    color: var(--text-main);
}

.heroSub .name span {
    color: var(--primary-color);
}

.heroSub .title {
    font-size: 1.7rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-weight: 400;
}

.heroBtns .hireMe {
    display: inline-block;
    padding: 14px 38px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(214, 48, 49, 0.25);
    transition: var(--transition-smooth);
}

.heroBtns .hireMe:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(214, 48, 49, 0.4);
    background-color: var(--primary-hover);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.heroimg {
    max-width: 100%;
    height: auto;
    max-height: 460px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.08));
    animation: float 4.5s ease-in-out infinite; 
}

.aboutMe {
    padding: 110px 20px;
    background-color: var(--card-bg);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.aboutMeImg {
    max-width: 100%;
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
    transition: var(--transition-smooth);
}

body.dark-mode .aboutMeImg {
    box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

.aboutMeImg:hover {
    transform: scale(1.02);
}

.textContainer {
    flex: 1.2;
}

.textTitle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.aboutName {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.aboutTitle {
    color: var(--primary-color);
}

.light {
    width: 32px;
    animation: pulse 1.5s infinite alternate;
}

.aboutMePar {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: justify;
}

.dream-text {
    display: inline-block;
    margin-top: 18px;
    font-weight: 600;
    color: var(--primary-color);
    background: #fff3f4;
    padding: 6px 18px;
    border-radius: 30px; 
}

body.dark-mode .dream-text {
    background: #374151;
    color: #ffd166;
}

.works {
    padding: 110px 20px;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--bg-light) 100%);
}

.worksContainer {
    max-width: 1200px;
    margin: 0 auto;
}

.projectTitle {
    text-align: center;
    margin-bottom: 55px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); 
    gap: 35px;
    list-style: none;
}

.card-link {
    display: block;
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.card-link img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.card-link span {
    display: block;
    padding: 18px;
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--card-bg);
    font-size: 1.1rem;
    border-top: 1px solid var(--border-color);
}

.card-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(214, 48, 49, 0.15);
}

.card-link:hover img {
    transform: scale(1.06);
}

.card-link:hover span {
    color: var(--primary-color);
    background-color: rgba(214, 48, 49, 0.02);
}

body.dark-mode .card-link:hover span {
    color: #ff6b6b;
    background-color: #111827;
}

.contentContainer {
    padding: 110px 20px;
    background-color: var(--bg-light);
    text-align: center;
}

.contactTitle {
    margin-bottom: 45px;
}

.contact-box {
    max-width: 620px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 45px;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 35px;
}

.emailAndPhone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.emailAndPhone img {
    width: 24px;
    height: 24px;
}

.emailAndPhone h3 {
    color: var(--text-main);
}

.emailAndPhone a {
    text-decoration: none;
    color: var(--text-main);
}

.emailAndPhone a:hover {
    color: var(--primary-color);
}

body.dark-mode .emailAndPhone a:hover {
    color: #ff6b6b;
}

.socialMedia {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--bg-light);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.social-icon img {
    width: 22px;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.05);
    background-color: var(--primary-color);
    box-shadow: 0 10px 22px rgba(214, 48, 49, 0.25);
}

.social-icon:hover img {
    filter: brightness(0) invert(1); 
}

footer {
    background-color: #0d121a;
    color: #a4b0be;
    text-align: center;
    padding: 35px 20px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

footer .author {
    color: var(--primary-color);
    font-weight: 600;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.85; }
    to { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .navigation ul {
        gap: 20px;
    }
    .hero {
        padding: 40px 20px;
    }
    .hero-container, .about-container {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }
    .heroSub .name {
        font-size: 2.8rem;
    }
    .heroSub .title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    .aboutName {
        font-size: 2.4rem;
    }
    .textTitle {
        justify-content: center;
    }
    .aboutMePar {
        text-align: center;
    }
    .arrow {
        display: none; 
    }
    .contact-box {
        padding: 35px 20px;
    }
}

.courses{
    padding:100px 8%;
}

.coursesContainer{
    max-width:1200px;
    margin:auto;
}

.courses-subtitle{
    text-align:center;
    color:var(--text-color);
    margin-top:15px;
    margin-bottom:50px;
    font-size:18px;
    opacity:.8;
}

.cards-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.course-card{

    background:var(--card-bg);

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    padding:35px;

    transition:.35s ease;

    position:relative;

    overflow:hidden;

}

.course-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(0,0,0,.15);

}

.course-level{

    display:inline-block;

    background:#ff4d6d;

    color:#fff;

    padding:8px 18px;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

    margin-bottom:20px;

}

.course-card h2{

    margin-bottom:15px;

    font-size:28px;

    color:var(--title-color);

}

.course-card p{

    color:var(--text-color);

    line-height:1.8;

    margin-bottom:25px;

}

.course-info{

    display:flex;

    flex-direction:column;

    gap:12px;

    margin-bottom:30px;

}

.course-info span{

    color:var(--text-color);

    font-size:15px;

}

.course-btn{

    display:inline-block;

    background:#ff4d6d;

    color:white;

    text-decoration:none;

    padding:14px 28px;

    border-radius:50px;

    font-weight:600;

    transition:.3s;

}

.course-btn:hover{

    background:#e6395f;

    transform:scale(1.05);

}

.premium-card{

    background:linear-gradient(135deg,#ff4d6d,#ff7f50);

    color:white;

}

.premium-card h2,
.premium-card p,
.premium-card span{

    color:white;

}

.premium-card .course-level{

    background:white;

    color:#ff4d6d;

}

.premium-card .course-btn{

    background:white;

    color:#ff4d6d;

}

.premium-card .course-btn:hover{

    background:#f3f3f3;

}



@media(max-width:768px){

.cards-grid{

grid-template-columns:1fr;

}

.course-card{

padding:28px;

}

.course-card h2{

font-size:24px;

}

}

.courses-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}


.app-box{
    width: 90%;
    max-width: 900px;
    margin: 80px auto;
    padding: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: var(--transition-smooth);
}


.app-box h2{
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}



.app-box p{
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
}


.course-btn{
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(214,48,49,0.25);
}

.course-btn:hover{
    background: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(214,48,49,0.40);
}


body.dark-mode .app-box{
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

body.dark-mode .app-box h2{
    color: var(--text-main);
}

body.dark-mode .app-box p{
    color: var(--text-muted);
}



@media (max-width:768px){

    .app-box{
        padding:35px 25px;
    }

    .app-card h2{
        font-size:1.7rem;
    }

    .app-card p{
        font-size:16px;
    }

    .course-btn{
        width:100%;
        text-align:center;
    }

}



/*==========================
      Coming Soon
==========================*/

.coming-soon{

    min-height:80vh;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:20px;

}

.coming-soon h1{

    font-size:4rem;

    color:var(--primary-color);

    margin-bottom:20px;

}

.coming-soon p{

    font-size:1.2rem;

    color:var(--text-muted);

    margin-bottom:40px;

    max-width:600px;

}

.coming-soon .course-btn{

    padding:15px 35px;

}
