:root {
    --primary-color: #0066FF;
    --secondary-color: #00D1FF;
    --text-color: #2D3748;
    --bg-color: #FFFFFF;
    --border-color: #E2E8F0;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --text-color: #F7FAFC;
    --bg-color: #1A202C;
    --border-color: #2D3748;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 209, 255, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
}

.floating-card {
    position: absolute;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.card-1 { top: 10%; left: 0; }
.card-2 { top: 40%; right: 0; animation-delay: 0.5s; }
.card-3 { bottom: 10%; left: 20%; animation-delay: 1s; }

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

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-shape svg {
    width: 100%;
    height: 70px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-color);
    opacity: 0.8;
}

.feature-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

/* Products Section */
.products-section {
    background-color: var(--bg-color);
    padding: 80px 0;
}

.products-section .section-header {
    margin-bottom: 3rem;
}

.products-section .section-title {
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.products-section .section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.product-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex: 1;
}

.product-actions {
    margin-top: auto;
}

.product-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-actions .btn i {
    transition: transform 0.3s ease;
}

.product-actions .btn:hover i {
    transform: translateX(3px);
}

/* Modal Styles */
.modal-content {
    background: var(--card-bg);
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-header .close {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1.5rem;
    padding: 1rem;
    margin: -1rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1;
}

.modal-title {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

[data-theme='dark'] .modal-footer a {
    color: #60a5fa;
    opacity: 0.9;
}

[data-theme='dark'] .modal-footer a:hover {
    color: #93c5fd;
    opacity: 1;
}

.modal-footer span {
    color: var(--text-muted);
}

[data-theme='dark'] .modal-footer span {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme='dark'] .modal-content {
    background: var(--dark-card-bg, #1a1a1a);
    color: var(--dark-text-color, #fff);
}

[data-theme='dark'] .modal-header,
[data-theme='dark'] .modal-footer {
    border-color: rgba(255,255,255,0.1);
}

[data-theme='dark'] .modal-body input,
[data-theme='dark'] .modal-body textarea {
    background: var(--dark-input-bg, #2a2a2a);
    border-color: rgba(255,255,255,0.1);
    color: var(--dark-text-color, #fff);
}

[data-theme='dark'] .modal-body input:focus,
[data-theme='dark'] .modal-body textarea:focus {
    background: var(--dark-input-bg, #2a2a2a);
    border-color: var(--primary-color);
}

[data-theme='dark'] .product-card {
    background: var(--dark-card-bg, #1a1a1a);
    border-color: rgba(255,255,255,0.1);
}

[data-theme='dark'] .product-title,
[data-theme='dark'] .product-title a {
    color: var(--dark-text-color, #fff);
}

[data-theme='dark'] .product-description {
    color: rgba(255,255,255,0.7);
}

/* Dark mode text-muted link styles */
[data-theme='dark'] .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme='dark'] a.text-muted {
    color: #93c5fd !important;
    transition: all 0.3s ease;
}

[data-theme='dark'] a.text-muted:hover {
    color: #bfdbfe !important;
    text-decoration: none;
}

[data-theme='dark'] .modal-body .text-center span {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Modal link container styles */
.modal-body .text-center {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-body .text-center a {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Divider style */
.modal-body .text-center span.mx-2 {
    font-size: 1rem;
    opacity: 0.5;
}

/* Close button styles */
.modal .btn-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.7;
    padding: 1rem;
    margin: -0.5rem;
}

[data-theme='dark'] .modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal .btn-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .products-section .section-title {
        font-size: 2rem;
    }
    
    .product-image img {
        height: 200px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
}

/* Navbar Styles */
.navbar {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-color);
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    bottom: -6px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.theme-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    left: 2px;
}

.theme-toggle-slider:after {
    content: '🌙';
    color: #fff;
    font-size: 14px;
    margin-left: auto;
}

[data-theme='dark'] .theme-toggle-slider:after {
    content: '☀️';
    margin-right: auto;
    margin-left: 0;
}

input:checked + .theme-toggle-slider {
    background-color: #2196F3;
}

input:checked + .theme-toggle-slider:before {
    transform: translateX(24px);
}

/* Modal link styles */
.modal-footer a,
.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme='dark'] .modal-footer a,
[data-theme='dark'] .modal-body a {
    color: #3b82f6;
}

.modal-footer a:hover,
.modal-body a:hover {
    color: var(--primary-hover-color);
    text-decoration: underline;
}

[data-theme='dark'] .modal-footer a:hover,
[data-theme='dark'] .modal-body a:hover {
    color: #60a5fa;
}

/* Theme toggle visibility */
[data-theme='dark'] .theme-toggle {
    opacity: 1;
    visibility: visible;
}

[data-theme='light'] .theme-toggle {
    opacity: 1;
    visibility: visible;
}

[data-theme='dark'] .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-theme='dark'] .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #60a5fa;
    color: #fff;
}

[data-theme='dark'] .form-label {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme='dark'] .form-check-label {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme='dark'] .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme='dark'] .form-check-input:checked {
    background-color: #60a5fa;
    border-color: #60a5fa;
}
