:root {
    /* Dark Theme (Default) */
    --primary-color: #6c5ce7;
    --primary-color-dark: #5649c0;
    --secondary-color: #00cec9;
    --background-dark: #0a0a0a;
    --background-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b2b2b2;
    --text-color: #ffffff;
    --accent-color: #00ff88;
    --card-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --gradient-2: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.featured-websites h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.featured-card h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.featured-card p {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.visit-btn {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.categories h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.category-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-links a {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.search-container input {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.search-container input::placeholder {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Update existing styles */
.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
}

.featured-websites h3 {
    font-size: 1.8rem;
}

.featured-card h4 {
    font-size: 1.2rem;
}

.featured-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .featured-websites h3 {
        font-size: 1.5rem;
    }
}

[data-theme="light"] {
    --background-dark: #ffffff;
    --background-light: #f5f5f5;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-color: #333333;
    --card-bg: rgba(0, 0, 0, 0.03);
    --input-bg: rgba(0, 0, 0, 0.05);
    --border-color: rgba(0, 0, 0, 0.1);
}

/* Theme Toggle Button Styles */
.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Update existing styles to use theme variables */
body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--background-dark);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-img {
    height: 80px;
    vertical-align: middle;
    margin-right: 10px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-links a.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin-top: 4rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

.search-container input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-container input:focus {
    outline: none;
}

.search-container input::placeholder {
    color: var(--text-secondary);
}

.search-container button {
    background: var(--gradient-1);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-container button:hover {
    transform: scale(1.05);
}

/* Categories Section */
.categories {
    padding: 5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.categories h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.category-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.category-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Trending Section */
.trending {
    padding: 5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.trending h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* Footer Styles */
footer {
    background: var(--card-bg, #222);
    color: var(--text-secondary, #bbb);
    padding: 1rem 2rem;
    border-top: 1px solid #333;
    font-size: 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    text-decoration: underline;
}

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

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

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

.category-card {
    animation: float 6s ease-in-out infinite;
}

.category-card:nth-child(2n) {
    animation-delay: 1s;
}

.category-card:nth-child(3n) {
    animation-delay: 2s;
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.chatbot-container.minimized {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    cursor: pointer;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-container.minimized .chatbot-header,
.chatbot-container.minimized .chatbot-messages,
.chatbot-container.minimized .chatbot-input {
    display: none;
}

.chatbot-container.minimized .minimize-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chatbot-container.minimized:hover {
    transform: scale(1.1);
}

.chatbot-container.minimized:hover .minimize-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.chatbot-header {
    padding: 15px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.minimize-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.minimize-btn:hover {
    transform: scale(1.1);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--background-dark);
}

.chatbot-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chatbot-message.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chatbot-message.bot {
    background: var(--card-bg);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 1px solid var(--border-color);
}

.chatbot-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    background: var(--background-dark);
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chatbot-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    background: var(--primary-color-dark);
    transform: scale(1.05);
}

/* Dark mode adjustments */
[data-theme="dark"] .chatbot-container {
    background: var(--card-bg);
}

[data-theme="dark"] .chatbot-message.bot {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .chatbot-input input {
    background: var(--input-bg);
    border-color: var(--border-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .chatbot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .chatbot-messages {
        padding: 10px;
    }
    
    .chatbot-input {
        padding: 10px;
    }
}

.featured-websites {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.featured-websites h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    padding: 0.5rem;
}

.featured-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.featured-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.featured-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.4;
}

.visit-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
}

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

@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-websites {
        padding: 1rem;
    }
    
    .featured-card img {
        height: 140px;
    }
}

/* Add transition for smooth theme switching */
body, header, .featured-websites, .featured-card, .search-container, .theme-toggle {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* About Page Styles */
.about-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    background: var(--card-bg);
    border-radius: 18px;
    margin: 6rem auto 2rem auto;
    max-width: 900px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
}

.about-hero .hero-content {
    text-align: center;
}

.about-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--font-display);
    font-weight: 700;
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-details {
    max-width: 900px;
    margin: 2rem auto 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-section {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--font-heading);
    font-weight: 700;
}

.about-section p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.about-section ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.08rem;
    line-height: 1.7;
}

.about-section ul li {
    margin-bottom: 0.4rem;
    list-style: disc;
}

@media (max-width: 700px) {
    .about-hero, .about-details {
        max-width: 98vw;
        padding: 1rem;
    }
    .about-section {
        padding: 1.2rem 1rem;
    }
    .about-hero h1 {
        font-size: 2rem;
    }
    .about-section h2 {
        font-size: 1.3rem;
    }
}

select, .sorting-controls select, #sortSelect {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    font-size: 1rem !important;
    appearance: none;
    outline: none;
    transition: background 0.3s, color 0.3s;
}

select option, .sorting-controls select option, #sortSelect option {
    background: var(--background-dark) !important;
    color: var(--text-primary) !important;
}

/* Dropdown text fix for dark mode */
.navbar .dropdown-content {
  background: var(--card-bg, #222);
  color: var(--text-primary, #fff);
}
.navbar .dropdown-content a {
  color: var(--text-primary, #fff);
}

/* About page styles */
.about-container {
    max-width: 700px;
    margin: 6rem auto 2rem auto;  /* Increased top margin to account for fixed navbar */
    background: var(--card-bg, #fff);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.about-container h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color, #4f8cff);
}

.about-container p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-container ul, .about-container ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.about-container li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about-container {
        margin: 5rem 1rem 2rem 1rem;
        padding: 1.5rem;
    }
}

/* Footer and navbar tweaks for consistency */
footer {
  background: var(--card-bg, #222);
  color: var(--text-secondary, #bbb);
  padding: 1rem 2rem;
  border-top: 1px solid #333;
  font-size: 1rem;
  margin-top: 2rem;
}
footer a {
  color: var(--accent-color, #4f8cff);
  text-decoration: none;
  margin-right: 1rem;
}
footer a:hover {
  text-decoration: underline;
}

/* Contact Page Styles */
.contact-section {
    padding: 6rem 1rem 2rem 1rem;
    min-height: calc(100vh - 200px);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.contact-method h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.contact-method p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.submit-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

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

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-light);
  display: flex;
  align-items: center;
  justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: transform 0.2s, background 0.2s;
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: white;
}

@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 5rem 1rem 1rem 1rem;
    }

    .contact-container {
        padding: 1.5rem;
    }

    .contact-info h1 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Tutorial Page Styles */
.tutorial-section {
    padding: 6rem 1rem 2rem 1rem;
    min-height: calc(100vh - 200px);
}

.tutorial-container {
    max-width: 1000px;
    margin: 0 auto;
  background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tutorial-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
    text-align: center;
}

.tutorial-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.tutorial-steps {
    position: relative;
    margin-bottom: 3rem;
}

.tutorial-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tutorial-step.active {
    display: block;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
  display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.step-content {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 16px;
}

.step-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.step-image {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-tips {
    list-style: none;
    padding: 0;
}

.step-tips li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.step-tips i {
    color: var(--accent-color);
}

.tutorial-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.prev-step,
.next-step {
  background: var(--gradient-1);
    color: white;
  border: none;
    padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.prev-step:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

.prev-step:hover:not(:disabled),
.next-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--accent-color);
}

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

@media (max-width: 768px) {
    .tutorial-container {
        padding: 2rem;
    }

    .tutorial-container h1 {
        font-size: 2rem;
    }

    .step-content {
        padding: 1.5rem;
    }

    .step-content h2 {
        font-size: 1.5rem;
    }

    .tutorial-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .prev-step,
    .next-step {
        width: 100%;
        justify-content: center;
    }
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}
.step-icon i {
    font-size: 3.5rem;
    color: var(--accent-color);
    background: var(--background-dark);
    border-radius: 50%;
    padding: 1.2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.social-share {
    margin-top: 10px;
}
.social-share button {
    margin-right: 5px;
    padding: 5px 10px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}
.social-share button:hover {
    background: #ddd;
}

/* Flash Message Styles */
.flash-message {
    display: block;
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    opacity: 0;
    transition: opacity 0.5s;
    animation: flash-fade 1s linear 1;
    z-index: 1000;
}
.flash-success {
    background: #e6f9ed;
    color: #1a7f37;
    border: 1.5px solid #1a7f37;
}
.flash-error {
    background: #ffeaea;
    color: #c0392b;
    border: 1.5px solid #c0392b;
}
@keyframes flash-fade {
    0% { opacity: 1; }
    20% { opacity: 0.5; }
    40% { opacity: 1; }
    60% { opacity: 0.5; }
    80% { opacity: 1; }
    100% { opacity: 1; }
} 