* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #34495e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================== HEADER & NAVBAR ==================== */
.header {
    background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar-logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* ==================== HAMBURGER ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ==================== HERO SEKCIJA ==================== */
.hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
}

.hero-content {
    animation: slideInDown 0.8s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.85;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: 3rem 1rem;
}

section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ==================== ABOUT JQUERY ==================== */
.about-jquery {
    background: white;
    padding: 3rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background: linear-gradient(135deg, #f8f9fa, #f1f2f6);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.about-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.about-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.about-details h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
}

.benefits-list i {
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* ==================== SELEKTORI SEKCIJA ==================== */
.selectors-section {
    background: white;
    padding: 3rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.selector-card {
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.selector-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.selector-header {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.selector-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selector-header i {
    transition: transform 0.3s ease;
}

.selector-content {
    padding: 1.5rem;
    display: none;
}

.selector-content.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selector-info {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.selector-info p {
    margin-bottom: 0.5rem;
}

.selector-info code {
    background: #f0f0f0;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    color: #e74c3c;
    font-weight: 600;
}

.selector-demo {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    border: 2px dashed #bdc3c7;
    margin-bottom: 1rem;
}

.demo-text {
    margin: 0.5rem 0;
    padding: 0.5rem;
}

.highlight-box {
    background: #ecf0f1;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    text-align: center;
}

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 1rem;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* ==================== METHODS SEKCIJA ==================== */
.methods-section {
    background: white;
    padding: 3rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.method-card {
    background: linear-gradient(135deg, #f8f9fa, #f1f2f6);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.method-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.method-header {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.method-header h3 {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
}

.method-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.method-body {
    padding: 1.5rem;
}

.method-body p {
    margin-bottom: 1rem;
}

.method-body h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.method-body code {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    display: block;
    margin: 0.5rem 0;
    padding: 0.8rem;
    overflow-x: auto;
}

.method-body ul {
    list-style: none;
    padding-left: 0;
}

.method-body li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.method-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== DEMO BUTTON ==================== */
.demo-btn {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    margin-right: 0.5rem;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.demo-btn:active {
    transform: translateY(0);
}

/* ==================== EXAMPLES SEKCIJA ==================== */
.examples-section {
    background: white;
    padding: 3rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.example-card {
    background: linear-gradient(135deg, #f8f9fa, #f1f2f6);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.example-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.example-demo {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    border: 2px dashed #bdc3c7;
    margin-bottom: 1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-card code {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 0.8rem;
    border-radius: 5px;
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

/* ==================== INTERACTIVE SEKCIJA ==================== */
.interactive-section {
    background: white;
    padding: 3rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.interactive-demo {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.interactive-box {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.interactive-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.interactive-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.control-btn {
    background: linear-gradient(135deg, var(--secondary-color), #27ae60);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* ==================== SUMMARY SEKCIJA ==================== */
.summary-section {
    background: white;
    padding: 3rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, #f8f9fa, #f1f2f6);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.summary-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.summary-card ul {
    list-style: none;
}

.summary-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.summary-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content h3 {
    margin-bottom: 0.5rem;
}

.footer-content p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-grid,
    .methods-grid,
    .examples-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .selector-header {
        padding: 1rem;
    }

    .selector-header h3 {
        font-size: 1.1rem;
    }

    .method-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .interactive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .interactive-controls {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .selector-card,
    .example-card,
    .method-card {
        margin-bottom: 1rem;
    }

    .demo-btn {
        width: 100%;
        padding: 0.8rem;
    }

    .control-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .interactive-grid {
        grid-template-columns: 1fr;
    }

    .interactive-controls {
        grid-template-columns: 1fr;
    }

    .code-block pre {
        font-size: 0.8rem;
    }
}