@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Kanit', sans-serif;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    height: .1rem;
    width: .5rem;
}

::-webkit-scrollbar-track {
    background-color: #121212;
}

::-webkit-scrollbar-thumb {
    background-color: #DF2626;
    border-radius: 5rem;
}

body {
    background: #121212;
    color: #FAFAFA;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

header {
    background: #121212;
    padding: 15px 10%;
    position: fixed;
    top: 0%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* Centers everything */
    align-items: center;
    gap: 600px; /* Adjust spacing */
    z-index: 1001;
    transition: 0.2s ease-in-out;
    box-shadow: 1px 7px 5px 0px rgba(0,0,0,0.49);
    -webkit-box-shadow: 1px 7px 5px 0px rgba(0,0,0,0.49);
    -moz-box-shadow: 1px 7px 5px 0px rgba(0,0,0,0.49);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navlist {
    display: flex;
    align-items: center;
    gap: 50px;
}

.navlist li a {
    color: #FAFAFA;
    font-weight: 500;
    font-size: 16px;
}

.navlist li a:hover {
    color: #DF2626;
    transition: 0.3s ease-in-out;
}

.logo-img {
    width: 200px;
    height: auto;
    
}

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

h2 {
    font-size: 32px;
    font-weight: 700;
    color: #DF2626;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 4px;
    background: #DF2626;
}

section {
    padding: 80px 0;
}

/* Technique Hero Section */
.technique-hero {
    height: 70vh;
    background-image: url('assets/techniques/limitless-hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.technique-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.8));
}

.technique-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.technique-name {
    font-size: 72px;
    font-weight: 800;
    color: #FAFAFA;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
}

.technique-user {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #DF2626;
    object-fit: cover;
    margin-right: 15px;
}

.technique-user span {
    font-size: 24px;
    font-weight: 600;
}

.technique-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.technique-type, .technique-grade {
    background: rgba(223, 38, 38, 0.2);
    border: 1px solid #DF2626;
    color: #DF2626;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
}

/* Technique Overview */
.overview-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.overview-text p {
    color: #a3a3a3;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quote-block {
    padding: 30px;
    background: #191919;
    border-left: 4px solid #DF2626;
    margin-top: 30px;
    position: relative;
}

.quote-block i {
    color: #DF2626;
    font-size: 24px;
    opacity: 0.5;
    position: absolute;
    top: 20px;
    left: 20px;
}

.quote-block blockquote {
    font-size: 20px;
    color: #FAFAFA;
    font-style: italic;
    margin-bottom: 10px;
    padding-left: 40px;
}

.quote-block cite {
    display: block;
    text-align: right;
    color: #DF2626;
    font-style: normal;
    font-weight: 500;
}

.overview-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Technique Mechanics */
.technique-mechanics {
    background-color: #0f0f0f;
}

.mechanics-intro {
    font-size: 18px;
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
}

.mechanics-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.diagram-image {
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.diagram-caption {
    text-align: center;
    max-width: 600px;
}

.diagram-caption h4 {
    color: #DF2626;
    font-size: 20px;
    margin-bottom: 10px;
}

.diagram-caption p {
    color: #a3a3a3;
    font-size: 16px;
}

.mechanics-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature {
    background: #191919;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 32px;
    color: #DF2626;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #FAFAFA;
}

.feature p {
    color: #a3a3a3;
    font-size: 16px;
    line-height: 1.5;
}

/* Technique Applications */
.applications-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.application-card {
    background: #131313;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.application-image {
    height: 100%;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.application-content {
    padding: 30px;
}

.application-content h3 {
    font-size: 28px;
    color: #FAFAFA;
    margin-bottom: 15px;
}

.jp-name {
    font-size: 18px;
    color: #DF2626;
    font-weight: 400;
}

.application-content p {
    color: #a3a3a3;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.application-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.example {
    text-align: center;
}

.example img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.example p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Domain Expansion */
.domain-expansion {
    background-image: url('assets/techniques/domain-expansion-bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    color: #FAFAFA;
}

.domain-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.7));
}

.domain-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.domain-heading {
    margin-bottom: 25px;
}

.domain-heading h2 {
    margin-bottom: 10px;
}

.domain-heading h3 {
    font-size: 28px;
    color: #FAFAFA;
}

.domain-text p {
    color: #d4d4d4;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.domain-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    background: rgba(25, 25, 25, 0.8);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat h4 {
    color: #DF2626;
    margin-bottom: 10px;
    font-size: 18px;
}

.stat p {
    margin-bottom: 0;
    font-size: 14px;
}

.domain-image img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(223, 38, 38, 0.3);
}

/* Technique Limitations */
.technique-limitations {
    background-color: #0f0f0f;
}

.limitations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.limitation {
    background: #191919;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.limitation i {
    font-size: 28px;
    color: #DF2626;
    margin-bottom: 15px;
}

.limitation h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #FAFAFA;
}

.limitation p {
    color: #a3a3a3;
    font-size: 16px;
    line-height: 1.5;
}

/* Related Techniques */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: #131313;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #FAFAFA;
}

.related-card:hover {
    transform: translateY(-10px);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h3 {
    font-size: 18px;
    padding: 15px 15px 5px;
    color: #FAFAFA;
}

.related-card p {
    color: #a3a3a3;
    font-size: 14px;
    padding: 0 15px 20px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .technique-name {
        font-size: 60px;
    }
    
    .overview-grid,
    .domain-content {
        grid-template-columns: 1fr;
    }
    
    .mechanics-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .application-card {
        grid-template-columns: 1fr;
    }
    
    .application-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .technique-name {
        font-size: 48px;
    }
    
    .mechanics-features,
    .limitations-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .domain-stats {
        grid-template-columns: 1fr;
    }
    
    .application-examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .technique-name {
        font-size: 36px;
    }
    
    .technique-hero {
        height: 50vh;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .technique-user span {
        font-size: 18px;
    }
}

/* Footer Styles */
.footer {
    background-color: #0f0f0f;
    padding: 60px 0 20px;
    color: #a3a3a3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    margin-bottom: 30px;
}

.footer-logo-img {
    width: 100%;
    height: auto;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-links-column {
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-links-column h4 {
    color: #FAFAFA;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: #a3a3a3;
    transition: color 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: #DF2626;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h4 {
    color: #FAFAFA;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #232323;
    color: #FAFAFA;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #DF2626;
    transform: translateY(-5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    font-size: 14px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .featured-news {
        flex-direction: column;
    }
    
    .featured-news-image {
        min-height: 250px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        max-width: 200px;
        margin: 0 auto 30px;
    }
    
    .footer-links {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-social {
        text-align: center;
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}