:root {
    --primary-bg: #000000;
    --text-color: #FFFFFF;
    --category-bg: rgba(255, 255, 255, 0.06);
    --category-border: rgba(255, 255, 255, 0.15);
    --gradient-start: #FF3BFF;
    --gradient-end: #5C24FF;
    --button-primary-bg: #5C24FF;
    --button-secondary-bg: rgba(255, 255, 255, 0.1);
    --orb-1: #FF3BFF;
    --orb-2: #5C24FF;
    --orb-3: #0066FF;
    --nav-height: 80px;
    --nav-bg: rgba(0, 0, 0, 0.8);
}

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

body {
    font-family: 'Bai Jamjuree', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at top right, 
        rgba(92, 36, 255, 0.15) 0%,
        rgba(92, 36, 255, 0) 50%),
        radial-gradient(circle at bottom left, 
        rgba(255, 59, 255, 0.15) 0%,
        rgba(255, 59, 255, 0) 50%);
    z-index: -2;
    animation: rotate 20s linear infinite;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
}

.orb-1 {
    background: var(--orb-1);
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    background: var(--orb-2);
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
    animation: float 12s ease-in-out infinite reverse;
}

.orb-3 {
    background: var(--orb-3);
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation: float 10s ease-in-out infinite 2s;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbHRlcj0idXJsKCNhKSIgb3BhY2l0eT0iLjA1Ii8+PC9zdmc+');
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

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

.hero-content {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--button-primary-bg);
    color: var(--text-color);
}

.btn-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.category {
    background-color: var(--category-bg);
    border: 1px solid var(--category-border);
    border-radius: 85px;
    padding: 19px 40px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transition: transform 0.3s ease;
}

.category:hover {
    transform: scale(1.05);
}

.category span {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

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

    .hero-description {
        font-size: 18px;
        padding: 0 20px;
    }

    .hero-cta {
        flex-direction: column;
        padding: 0 20px;
    }

    .categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-actions {
    display: flex;
    gap: 16px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s ease;
}

/* Adjust main content for fixed navbar */
main {
    padding-top: var(--nav-height);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .navbar.menu-open .nav-links,
    .navbar.menu-open .nav-actions {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar.menu-open .nav-links {
        gap: 20px;
    }

    .navbar.menu-open .mobile-menu-btn span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar.menu-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .navbar.menu-open .mobile-menu-btn span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Features Section */
.features {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-description {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card .content {
    position: relative;
    z-index: 1;
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out infinite;
}

.feature-icon {
    margin-bottom: 24px;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-icon svg {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
    animation: borderRotate 4s linear infinite;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.7;
}

@keyframes shine {
    0% {
        background-position: -100% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for features */
@media (max-width: 768px) {
    .features {
        padding: 80px 0;
    }

    .section-title {
        font-size: 36px;
    }

    .section-description {
        font-size: 18px;
        padding: 0 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-card {
        padding: 30px;
    }
}

/* Trading Section */
.trading {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.trading-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.trading-chart {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-title h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    margin-right: 12px;
}

.change {
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 100px;
}

.change.positive {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.change.negative {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chart-btn.active {
    background: var(--button-primary-bg);
    border-color: var(--button-primary-bg);
}

.chart-container {
    width: 100%;
    height: 400px;
    position: relative;
}

.trading-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trading-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trading-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content h4 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-content p {
    font-size: 16px;
    opacity: 0.7;
}

/* Responsive adjustments for trading section */
@media (max-width: 1024px) {
    .trading-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .trading {
        padding: 80px 0;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .chart-controls {
        width: 100%;
        justify-content: space-between;
    }

    .chart-container {
        height: 300px;
    }
}

/* About Section */
.about {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 40px;
}

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

.stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.7;
    margin: 0;
}

.about-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(255, 59, 255, 0.5),
        rgba(92, 36, 255, 0.5)
    );
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border: 2px solid var(--primary-bg);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
}

.timeline-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.timeline-content p {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.timeline-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--gradient-start);
}

/* Responsive adjustments for about section */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-cta {
        flex-direction: column;
    }

    .timeline-content:hover {
        transform: none;
    }
}

/* Contact Section */
.contact {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 60px;
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-card p {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 8px;
}

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

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 2px rgba(255, 59, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.btn-full {
    width: 100%;
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    box-shadow: none;
}

.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
    border-color: rgba(255, 59, 59, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.1);
}

/* Success message */
.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Responsive adjustments for contact section */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 80px 0;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-card {
        width: 100%;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
} 

.nav-actions a {
    text-decoration: none;
}

.d-none {
    display: none;
}

.a-dec-none {
    text-decoration: none;
}