:root {
    /* Dark mode colors (default) */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --light-bg: #1e293b;
    --text-light: #e2e8f0;
    --text-dark: #94a3b8;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Light mode colors */
[data-theme="light"] {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --accent-color: #db2777;
    --dark-bg: #ffffff;
    --light-bg: #f8fafc;
    --text-light: #1e293b;
    --text-dark: #64748b;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, .logo-text, .hero-brand {
    font-family: 'Mogra', cursive;
}

/* Navigation */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--light-bg);
    border-radius: 15px;
    padding: 0;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.theme-toggle:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.theme-icon {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

[data-theme="light"] .theme-icon {
    transform: translateX(28px);
    background: var(--accent-color);
}

[data-theme="dark"] .theme-icon {
    transform: translateX(0);
}

.theme-icon::before {
    content: '🌙';
}

[data-theme="light"] .theme-icon::before {
    content: '☀️';
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--dark-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

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

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--accent-color);
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.animated-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.1;
}

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

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.glitch {
    position: relative;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 400;
    display: block;
    margin-bottom: 0.5rem;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--accent-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--primary-color);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 1px); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(30% 0 40% 0); transform: translate(1px, -2px); }
    80% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, 1px); }
}

.hero-logo {
    width: 350px;
    height: auto;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease, float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.3));
}

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

.hero-brand {
    font-size: 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    animation: pulse 2s ease-in-out infinite;
    margin-top: -1rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

[data-theme="dark"] .hero-subtitle {
    color: #cbd5e1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

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

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

[data-theme="dark"] .btn-secondary {
    color: #e2e8f0;
}

[data-theme="light"] .btn-secondary {
    color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-center {
    margin-top: 2rem;
    display: inline-block;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-dark);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-dark);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background: var(--light-bg);
    color: var(--text-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-dark);
}

[data-theme="dark"] .about-card p {
    color: #cbd5e1;
}

/* Tools Preview */
.tools-preview {
    background: var(--dark-bg);
    color: var(--text-light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
    cursor: pointer;
}

.tool-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.tool-header {
    margin-bottom: 1rem;
}

.tool-emoji {
    font-size: 3rem;
}

.tool-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-dark);
}

[data-theme="dark"] .tool-card p {
    color: #cbd5e1;
}

/* Contact Section */
.contact {
    background: var(--light-bg);
    color: var(--text-light);
    text-align: center;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 2rem 0;
}

[data-theme="dark"] .contact-text {
    color: #cbd5e1;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

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

.footer-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
}

.footer-logo span {
    color: var(--primary-color);
    font-weight: 500;
}

[data-theme="dark"] .footer-logo span {
    color: #a5b4fc;
}

[data-theme="light"] .footer-logo span {
    color: var(--primary-color);
}

.logo-small {
    height: 30px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    color: var(--text-dark);
    font-size: 0.9rem;
}

[data-theme="dark"] .footer-copyright {
    color: #94a3b8;
}

/* Footer Service */
.footer-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-service span {
    color: var(--text-dark);
    font-size: 0.9rem;
}

[data-theme="dark"] .footer-service span {
    color: #94a3b8;
}

.hexle-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hexle-logo:hover {
    opacity: 1;
}

[data-theme="light"] .footer-service {
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.no-deco {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-brand {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}