/* TextileTon Theme - Premium Dark Mode Design */

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

:root {
    /* Primary Colors */
    --primary-color: #535C91;
    --primary-dark: #1B1A55;
    --primary-light: #9290C3;
    --accent: #070F2B;
    
    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    
    /* Background Colors */
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --card-bg: #FFFFFF;
    --hover-bg: #F3F4F6;
    
    /* Border Colors */
    --border-color: #E5E7EB;
    --border-hover: #D1D5DB;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #535C91 0%, #1B1A55 100%);
    --gradient-secondary: linear-gradient(135deg, #9290C3 0%, #535C91 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px -4px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 32px -8px rgba(0, 0, 0, 0.15);
    
    /* Footer */
    --footer-bg: #1F2937;
    --footer-text: #9CA3AF;
    
    /* Icon Filter */
    --icon-filter: none;
    
    /* Legacy Variables for Compatibility */
    --primary: #535C91;
    --dark: #1F2937;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --gray-lighter: #F9FAFB;
    --white: #FFFFFF;
    --success: #10B981;
    --gradient-1: linear-gradient(135deg, #535C91 0%, #9290C3 100%);
    --gradient-2: linear-gradient(135deg, #1B1A55 0%, #535C91 100%);
}

[data-theme="dark"] {
    /* Primary Colors */
    --primary-color: #9290C3;
    --primary-dark: #B5B3D8;
    --primary-light: #535C91;
    --accent: #1B1A55;
    
    /* Text Colors */
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-tertiary: #9CA3AF;
    
    /* Background Colors */
    --bg-primary: #070F2B;
    --bg-secondary: #1B1A55;
    --card-bg: #1B1A55;
    --hover-bg: #535C91;
    
    /* Border Colors */
    --border-color: #535C91;
    --border-hover: #9290C3;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #9290C3 0%, #535C91 100%);
    --gradient-secondary: linear-gradient(135deg, #535C91 0%, #1B1A55 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px -4px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
    
    /* Footer */
    --footer-bg: #070F2B;
    --footer-text: #D1D5DB;
    
    /* Icon Filter */
    --icon-filter: brightness(0) invert(1);
    
    /* Legacy Variables for Compatibility */
    --primary: #9290C3;
    --dark: #F9FAFB;
    --gray: #9CA3AF;
    --gray-light: #1B1A55;
    --gray-lighter: #070F2B;
    --white: #070F2B;
    --gradient-1: linear-gradient(135deg, #9290C3 0%, #535C91 100%);
    --gradient-2: linear-gradient(135deg, #535C91 0%, #1B1A55 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-primary);
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-light);
}

[data-theme="dark"] .navbar {
    background: rgba(7, 15, 43, 0.8);
    border-bottom-color: var(--gray-light);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(83, 92, 145, 0.3);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    font-size: 0.9375rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(83, 92, 145, 0.4);
}

.btn-white {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.btn-white:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83, 92, 145, 0.3);
}

[data-theme="dark"] .cta-button {
    color: white;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--hover-bg);
}

/* Page Header */
.page-header {
    padding: 140px 2rem 80px;
    background: var(--gradient-primary);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

[data-theme="dark"] .page-header {
    background: var(--gradient-secondary);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Content Sections */
.content-section {
    padding: 100px 2rem;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    transition: background-color 0.3s ease;
}

footer p {
    margin: 0;
    font-size: 0.9375rem;
}

[data-theme="dark"] footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer {
    background: linear-gradient(135deg, #1B1A55 0%, #070F2B 100%);
    color: #E5E7EB;
    padding: 5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(146, 144, 195, 0.5), transparent);
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #070F2B 0%, #000000 100%);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand h3 {
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand h3::before {
    content: 'TT';
    font-size: 1.5rem;
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #D1D5DB;
    font-size: 0.9375rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(146, 144, 195, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9290C3;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid rgba(146, 144, 195, 0.2);
}

.social-link:hover {
    background: #535C91;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(83, 92, 145, 0.4);
    border-color: #535C91;
}

.footer-links h4 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #9290C3;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #9290C3;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(146, 144, 195, 0.15);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.875rem;
    margin: 0;
}

.footer-credits {
    color: #9CA3AF;
    font-size: 0.875rem;
}

.footer-credits a {
    color: #9290C3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: #B5B3D8;
}

@media (max-width: 968px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .footer {
        padding: 4rem 1.5rem 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
