/* Глобални стилови */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: #000;
    color: #0f0;
    overflow-x: hidden;
    position: relative;
}

.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
    z-index: -2;
}

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Навигација */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #0f0;
    margin-bottom: 40px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #0f0;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 3px;
}

.nav-links a:hover, .nav-links a.active {
    background-color: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 10px #0f0;
}

.admin-btn {
    background-color: #0f0;
    color: #000 !important;
    padding: 8px 15px !important;
    font-weight: bold;
}
.navbar > .logo {
    flex-shrink: 0;
}

.navbar > .nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
}
/* Главна секција */
.section {
    padding: 80px 0;
}

.hero {
    text-align: center;
    padding: 60px 0;
}

.matrix-text {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #0f0;
}

.green-text {
    color: #0f0;
}

.typewriter {
    font-size: 2rem;
    margin-bottom: 30px;
    overflow: hidden;
    border-right: .15em solid #0f0;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #0f0; }
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #8f8;
}

.code-window {
    background-color: #111;
    border: 1px solid #0f0;
    border-radius: 5px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.code-header {
    background-color: #222;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #0f0;
}

.code-dots {
    display: flex;
    margin-right: 10px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.code-dots .red { background-color: #ff5f56; }
.code-dots .yellow { background-color: #ffbd2e; }
.code-dots .green { background-color: #27ca3f; }

.code-title {
    color: #8f8;
    font-size: 0.9rem;
}

.code-body {
    padding: 20px;
}

.code-prompt {
    color: #0f0;
}

.code-output {
    color: #8f8;
}

/* Карти */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background-color: rgba(17, 17, 17, 0.8);
    border: 1px solid #0f0;
    border-radius: 5px;
    padding: 30px;
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    color: #0f0;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0f0;
}

.about-card p {
    color: #8f8;
    line-height: 1.6;
}

/* Вештини */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
}

.section-subtitle {
    text-align: center;
    color: #8f8;
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.skill-category {
    background-color: rgba(17, 17, 17, 0.8);
    border: 1px solid #0f0;
    border-radius: 5px;
    padding: 25px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #0f0;
    display: flex;
    align-items: center;
}

.skill-category h3 i {
    margin-right: 10px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-item span {
    display: block;
    margin-bottom: 8px;
    color: #8f8;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #222;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: #0f0;
    border-radius: 5px;
    box-shadow: 0 0 5px #0f0;
}

/* Блог */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background-color: rgba(17, 17, 17, 0.8);
    border: 1px solid #0f0;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0f0;
}

.blog-date {
    color: #8f8;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.blog-excerpt {
    color: #8f8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #0f0;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

.btn {
    display: inline-block;
    background-color: #0f0;
    color: #000;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0c0;
    box-shadow: 0 0 15px #0f0;
}

/* Контакт */
/* Контакт секција - централизирана */
.contact-center {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-message h3 {
    font-size: 1.8rem;
    color: #0f0;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.contact-message p {
    color: #8f8;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-container-centered {
    max-width: 700px;
    margin: 0 auto 50px auto;
    padding: 30px;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid #0f0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: rgba(10, 10, 10, 0.9);
    border: 1px solid #0f0;
    border-radius: 8px;
    color: #0f0;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.2);
    border-color: #0f0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

/* Капча стил */
.captcha-container {
    background: rgba(0, 20, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #0a0;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #8f8;
    margin-bottom: 5px;
}

.captcha-question span {
    font-weight: bold;
}

.captcha-question input {
    width: 60px !important;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px !important;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(45deg, #0f0, #0c0);
    color: #000;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #0c0, #0f0);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
}

.submit-btn i {
    font-size: 1.2rem;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    min-height: 20px;
}

/* Контакт информации на дното */
.contact-info-bottom {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.7);
    border-radius: 10px;
    border: 1px solid #222;
    transition: all 0.3s;
    min-width: 250px;
}

.contact-info-item:hover {
    border-color: #0f0;
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0f0;
}

.contact-details h4 {
    color: #0f0;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details a,
.contact-details p {
    color: #8f8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #0f0;
    text-decoration: underline;
}

/* Responsive дизајн */
@media (max-width: 768px) {
    .contact-container-centered {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-info-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .contact-info-item {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-center {
        padding: 0 15px;
    }
    
    .contact-message h3 {
        font-size: 1.5rem;
    }
    
    .contact-message p {
        font-size: 1rem;
    }
}

/* Футер */
.footer {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #0f0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    margin-top: 10px;
    color: #8f8;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #0f0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #8f8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0f0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #111;
    border: 1px solid #0f0;
    border-radius: 50%;
    color: #0f0;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #0f0;
    color: #000;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #222;
    color: #8f8;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Респонзивност */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .matrix-text {
        font-size: 2.5rem;
    }
    
    .typewriter {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Пагинација */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination-info {
    color: #8f8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.pagination-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #111;
    border: 1px solid #0f0;
    color: #0f0;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.pagination-link:hover {
    background-color: #0f0;
    color: #000;
}

.pagination-link.active {
    background-color: #0f0;
    color: #000;
    font-weight: bold;
}

/* Стилови за пораки од формата */
.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    font-size: 0.95rem;
}

.success-message {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #0f0;
    color: #0f0;
    padding: 12px 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #f00;
    color: #f00;
    padding: 12px 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.success-message i,
.error-message i {
    margin-right: 8px;
}

/* Стилови за експертиза секција - поправени */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колони еднакви */
    gap: 25px;
    margin-top: 40px;
}

.expertise-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.9));
    border: 1px solid #0f0;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%; /* Иста висина за сите */
    display: flex;
    flex-direction: column;
}

/* Сите карти да имаат иста висина на содржината */
.expertise-card > *:last-child {
    margin-top: auto;
}

.expertise-card.featured {
    border: 2px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #0f0, #0c0);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

.expertise-icon {
    font-size: 2.5rem;
    color: #0f0;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.3), transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.expertise-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #0f0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    text-align: center;
    line-height: 1.3;
}

.expertise-level {
    color: #8f8;
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
    text-align: center;
    font-style: italic;
}

.expertise-list {
    list-style: none;
    margin: 15px 0;
    flex-grow: 1; /* Овозможува да се прошири и да зафати простор */
}

.expertise-list li {
    margin-bottom: 10px;
    color: #8f8;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.4;
}

.expertise-list i {
    color: #0f0;
    margin-right: 8px;
    margin-top: 2px;
    min-width: 16px;
    font-size: 0.9rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #222;
    justify-content: center;
}

.tech-tag {
    background: rgba(0, 255, 0, 0.1);
    color: #0f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    transition: all 0.3s;
}

.tech-tag:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.05);
}

/* Responsive дизајн */
@media (max-width: 1200px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колони на таблети */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr; /* 1 колона на мобилни */
        gap: 15px;
    }
    
    .expertise-card {
        padding: 20px;
    }
    
    .expertise-icon {
        font-size: 2rem;
    }
    
    .expertise-card h3 {
        font-size: 1.3rem;
    }
}

/* Методологија дел */
.methodology-section {
    margin-top: 60px;
    padding: 40px;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 15px;
    border: 1px solid #0f0;
}

.methodology-title {
    text-align: center;
    font-size: 1.8rem;
    color: #0f0;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    counter-reset: step-counter;
}

.step {
    position: relative;
    padding: 25px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
    border: 1px solid #333;
    transition: all 0.3s;
}

.step:hover {
    border-color: #0f0;
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #0f0;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step h4 {
    color: #0f0;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.step p {
    color: #8f8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Адаптивност */
@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .methodology-steps {
        grid-template-columns: 1fr;
    }
    
    .methodology-section {
        padding: 20px;
    }
    
    .expertise-card {
        padding: 20px;
    }
}

/* Языковой переключатель */
.language-switcher {
    position: relative; /* Променето од absolute */
    display: flex;
    gap: 5px;
    margin-left: auto; /* Го турка надесно */
    margin-right: 20px; /* Простор од десната страна */
}

.lang-btn {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #0f0;
    color: #8f8;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #0f0;
}

.lang-btn.active {
    background: #0f0;
    color: #000;
    border-color: #0f0;
}

/* Модальное окно для подтверждения */
.language-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.language-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.language-modal .modal-content {
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 2px solid #0f0;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.language-modal h3 {
    color: #0f0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.language-modal h3 i {
    margin-right: 10px;
}

.language-modal p {
    color: #8f8;
    margin-bottom: 10px;
    line-height: 1.5;
}

.language-modal small {
    color: #666;
    font-size: 0.85rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.confirm-btn {
    background: linear-gradient(45deg, #0f0, #0c0);
    color: #000;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #8f8;
    padding: 12px 25px;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Флаг иконки */
.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    margin-right: 5px;
    border-radius: 2px;
    vertical-align: middle;
}

.flag-mk {
    background: linear-gradient(to bottom, #d20000 33%, #ffe600 33%, #ffe600 66%, #000 66%);
}

.flag-en {
    background: linear-gradient(
        to right,
        #012169 0%, #012169 33%,
        #C8102E 33%, #C8102E 66%,
        #FFFFFF 66%, #FFFFFF 100%
    );
}