/* Base styles and variables */
:root {
    --primary-color: #4a89dc;
    --primary-hover: #3a70c0;
    --text-color: #121212;
    --text-light: #666;
    --background-color: #f5f5f5;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Inter', sans-serif;
    --h1-size: 3rem;
    --h2-size: 2.25rem;
    --h3-size: 1.3rem;
    --body-size: 1rem;
    --small-size: 0.875rem;
    --cyber-accent: #00e5ff;
    --cyber-accent-dark: #008b8b;
    --cyber-secondary: #ff00ff;
    --cyber-glow: rgba(0, 229, 255, 0.7);
    
    /* Nova cyber paleta boja */
    --cyber-neon: #0ff;
    --cyber-purple: #b013fe;
    --cyber-pink: #fe019a;
    --cyber-blue: #06c8fe;
    --cyber-green: #00ff9f;
    --cyber-yellow: #fffc00;
    --cyber-red: #ff003c;
    
    /* Gradijenti */
    --cyber-gradient-1: linear-gradient(90deg, var(--cyber-blue), var(--cyber-purple));
    --cyber-gradient-2: linear-gradient(45deg, var(--cyber-pink), var(--cyber-blue));
    --cyber-gradient-3: linear-gradient(to right, var(--cyber-green), var(--cyber-blue));
    --cyber-gradient-4: linear-gradient(to right, var(--cyber-red), var(--cyber-purple));
    
    /* Pozadine */
    --cyber-bg-dark: #0a0a16;
    --cyber-bg-medium: #141425;
    --cyber-bg-light: #21213a;
    --cyber-grid: rgba(6, 200, 254, 0.1);
    
    /* Senke */
    --cyber-box-shadow: 0 0 5px var(--cyber-glow), 0 0 10px var(--cyber-glow), 0 0 15px var(--cyber-glow);
    --cyber-text-shadow: 0 0 5px var(--cyber-glow), 0 0 10px var(--cyber-glow);
    
    /* Fontovi */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Ivice */
    --cyber-border: 1px solid var(--cyber-neon);
    --cyber-border-thick: 2px solid var(--cyber-neon);
    
    /* Animacije */
    --glitch-duration: 0.2s;
    --scan-duration: 3s;
    --pulse-duration: 2s;
}

body {
    background: #121212;
    color: #fff;
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    font-size: var(--body-size);
    line-height: 1.6;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    overflow-x: hidden;
}

/* Theme variations */
body.light {
    background: #f5f5f5;
    color: #121212;
}

body.dark {
    --text-color: #fff;
    --text-light: #ddd;
    --background-color: #1e1e1e;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--text-color);
}

h1 {
    font-size: var(--h1-size);
    margin-bottom: 1.25rem;
}

h2 {
    font-size: var(--h2-size);
    margin-bottom: 1rem;
}

h3 {
    font-size: var(--h3-size);
    margin-bottom: 0.75rem;
}

p {
    font-size: var(--body-size);
    line-height: 1.6;
    margin: 0 0 1rem;
    color: var(--text-light);
}

.small-text {
    font-size: var(--small-size);
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 40.625rem;
    margin: 0 auto;
}

/* Common elements */
.header-space {
    height: 80px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 2.5rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    margin-right: 0.625rem;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Section transitions */
.container, .about-section, .skills-section, .services-section, .stats-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, background-color 0.3s ease;
}

.container {
    display: flex;
    min-height: 90vh;
    align-items: center;
    padding: 2% 5%;
    position: relative;
    overflow: hidden;
    transform: none;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
    will-change: transform;
}

.container.appear, .about-section.appear, .skills-section.appear, 
.services-section.appear, .stats-section.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Promo section animation */
.promo-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.promo-section.appear {
    opacity: 1;
    transform: translateY(0);
}

.promo-content {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.3s;
}

.promo-section.appear .promo-content {
    opacity: 1;
    transform: scale(1);
}

.promo-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.promo-features li {
    font-size: 1.1rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.promo-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.promo-section.appear .promo-features li:nth-child(1) { transition-delay: 0.4s; }
.promo-section.appear .promo-features li:nth-child(2) { transition-delay: 0.5s; }
.promo-section.appear .promo-features li:nth-child(3) { transition-delay: 0.6s; }
.promo-section.appear .promo-features li:nth-child(4) { transition-delay: 0.7s; }
.dark .promo-features li i {
    color: var(--primary-color);
}

.promo-section.appear .promo-features li {
    opacity: 1;
    transform: translateX(0);
}

/* Text and image animations */
.text, .about-text {
    flex: 1;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    opacity: 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 300px;
    will-change: transform;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-container, .about-image {
    flex: 1;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    opacity: 0;
}

.container.appear .text,
.container.appear .image-container,
.about-section.appear .about-text,
.about-section.appear .about-image {
    opacity: 1;
    transform: translateX(0);
}

/* Text styles */
.text {
    z-index: 2;
    position: relative;
    padding-right: 5%;
}

.text p {
    font-size: 1rem;
    letter-spacing: 0.125em;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    min-height: 24px;
    margin: 0;
}

.text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    min-height: 120px;
}

.text h1 strong {
    color: var(--primary-color);
}

.buttons {
    margin-top: 1.25rem;
}

/* Image styles */
.image-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper::before {
    content: "";
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: -10%;
    width: 120%;
    height: 130%;
    clip-path: polygon(5% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

body.dark .image-wrapper::before {
    background: linear-gradient(to left, rgba(18,18,18,0) 30%, #3a3a3a 100%);
}

body.light .image-wrapper::before {
    background: linear-gradient(to left, rgba(245, 245, 245, 0) 30%, #d6d6d6 100%);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 3;
    object-fit: contain;
    max-height: 70vh;
    aspect-ratio: attr(width) / attr(height);
    max-width: 100%;
}

/* Common section styles */
.stats-section, .about-section, .skills-section, .services-section {
    padding: 5%;
    background-color: var(--background-color);
    border-top: 1px solid rgba(0,0,0,0.05);
}

body.dark .stats-section, 
body.dark .about-section, 
body.dark .skills-section, 
body.dark .services-section {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.stats-section {
    background: #f8f8f8;
    text-align: center;
    z-index: 3;
}

body.dark .stats-section {
    background: #1e1e1e;
}

/* Container styles */
.stats-container, .about-container {
    display: flex;
    max-width: 90%;
    margin: 0 auto;
}

.stats-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 3%;
}

.about-container {
    align-items: center;
    width: 100%;
    gap: 5%;
}

/* Stats items */
.stat-item {
    background: #e0dfd5;
    padding: 1.5rem 1rem;
    border-radius: 0.625rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
}

body.dark .stat-item {
    background: #2c2c2c;
    color: #fff;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.3);
}

.stats-section.appear .stat-item {
    opacity: 1;
    transform: scale(1);
}

.stat-item i {
    font-size: 2.25rem;
    color: var(--primary-color);
}

.stat-item h2 {
    font-size: 1.75rem;
    margin: 0.625rem 0;
    color: var(--text-color);
}

.stat-item p {
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--text-light);
    margin: 0;
}

/* About section */
.about-image {
    max-width: 45%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    display: block;
}

.about-text h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.about-info {
    list-style: none;
    padding: 0;
    margin-bottom: 1.25rem;
}

.about-info li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.about-info li i {
    margin-right: 0.625rem;
    color: var(--primary-color);
}

/* Skill items */
.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.25rem;
}

.skill-item {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.3125rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.about-section.appear .skill-item {
    opacity: 1;
    transform: scale(1);
}

.skill-item:hover {
    transform: translateY(-3px);
}

/* Skills and services sections */
.skills-section, .services-section {
    text-align: center;
    padding: 5%;
    background-color: var(--background-color);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.skills-container, .services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 1s ease-out;
    gap: 1.25rem;
}

.skills-section.appear .skills-container, 
.services-section.appear .services-container {
    opacity: 1;
}

/* Card styles */
.skill-card, .service-card {
    background: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, background-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-card {
    width: 18.75rem;
}

.service-card {
    width: 17.5rem;
    cursor: pointer;
}

body.dark .skill-card, body.dark .service-card {
    background: #2a2a2a;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.3);
}

/* Card animations */
.skill-card:nth-child(-n+4), 
.service-card:nth-child(odd) {
    transform: translateX(-30px);
}

.skill-card:nth-child(n+5),
.service-card:nth-child(even) {
    transform: translateX(30px);
}

.skills-section.appear .skill-card,
.services-section.appear .service-card {
    opacity: 1;
    transform: translateX(0);
}

/* Hover effects */
.skill-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Skills section specific */
.skills-section h2, .services-section h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.skills-section p, .services-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.9375rem;
    color: #333;
}

body.dark .skill-card h3 {
    color: #f0f0f0;
}

/* Skill circle styles */
.skill-circle {
    width: 7.5rem;
    height: 7.5rem;
    position: relative;
    margin: 0 auto 0.9375rem;
}

.skill-circle svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.skill-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    cx: 60;
    cy: 60;
    r: 50;
}

.skill-circle .bg {
    stroke: #e5e5e5;
}

body.dark .skill-circle .bg {
    stroke: #444;
}

.skill-circle .progress {
    stroke: var(--primary-color);
    transition: stroke-dashoffset 1.5s ease-out;
}

.skill-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

body.dark .skill-percent {
    color: #f0f0f0;
}

.skill-details {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: #666;
    gap: 0.625rem;
    margin-top: 0.625rem;
}

body.dark .skill-details {
    color: #aaa;
}

.skill-details span {
    font-weight: bold;
    color: #333;
}

body.dark .skill-details span {
    color: #f0f0f0;
}

.skill-divider {
    width: 1.25rem;
    height: 0.125rem;
    background: #4a89dc;
}

/* Transition delays */
.stats-section.appear .stat-item:nth-child(1), 
.skills-section.appear .skill-card:nth-child(1),
.skills-section.appear .skill-card:nth-child(5),
.services-section.appear .service-card:nth-child(1),
.services-section.appear .service-card:nth-child(5),
.about-section.appear .skill-item:nth-child(1) { transition-delay: 0.2s; }

.stats-section.appear .stat-item:nth-child(2),
.skills-section.appear .skill-card:nth-child(2),
.skills-section.appear .skill-card:nth-child(6),
.services-section.appear .service-card:nth-child(2),
.services-section.appear .service-card:nth-child(6),
.about-section.appear .skill-item:nth-child(2) { transition-delay: 0.3s; }

.stats-section.appear .stat-item:nth-child(3),
.skills-section.appear .skill-card:nth-child(3),
.skills-section.appear .skill-card:nth-child(7),
.services-section.appear .service-card:nth-child(3),
.services-section.appear .service-card:nth-child(7),
.about-section.appear .skill-item:nth-child(3) { transition-delay: 0.4s; }

.stats-section.appear .stat-item:nth-child(4),
.skills-section.appear .skill-card:nth-child(4),
.skills-section.appear .skill-card:nth-child(8),
.services-section.appear .service-card:nth-child(4),
.services-section.appear .service-card:nth-child(8),
.about-section.appear .skill-item:nth-child(4) { transition-delay: 0.5s; }

.about-section.appear .skill-item:nth-child(5) { transition-delay: 0.6s; }
.about-section.appear .skill-item:nth-child(6) { transition-delay: 0.7s; }

:root {
    --accent-color: #4a89dc;
    --accent-color-dark: #3a70c0;
}

/* ZAJEDNIČKI STILOVI */
.services-section h3, .skills-section h3 {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    font-weight: bold;
}

.services-section h1, .skills-section h1, .projekat-content h2 {
    font-weight: bold;
    color: var(--text-color);
}

.services-section h1, .skills-section h1 {
    font-size: 2.25rem;
    margin-top: 0.625rem;
}

.services-description, .skills-description {
    color: var(--text-light);
    max-width: 40.625rem;
    margin: 0.9375rem auto 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* SERVICES SECTION */
.service-icon {
    width: 3.75rem;
    height: 3.75rem;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 0.9375rem;
}

.service-icon img {
    width: 1.875rem;
    height: 1.875rem;
}

.service-card h2 {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 0.625rem;
}

.service-card p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
}

body.dark .service-card h2 {
    color: #f0f0f0;
}

body.dark .service-card p {
    color: #aaa;
}

/* PROJECT SECTION */
.projekat-wrapper {
    background-color: white;
    padding-top: 10%;
    overflow-x: hidden;
}

.projekat-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--accent-color-dark);
    padding: 8% 10%;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.projekat-section.appear {
    opacity: 1;
    transform: translateY(0);
}

.projekat-content {
    max-width: 45%;
    color: white;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.3s;
    z-index: 3;
}

.projekat-section.appear .projekat-content,
.projekat-section.appear .projekat-image {
    opacity: 1;
    transform: translateX(0);
}

.projekat-content h2 {
    font-size: 2rem;
}

.projekat-content p {
    font-size: 1rem;
    margin: 3% 0;
}

.projekat-btn {
    background-color: white;
    color: var(--accent-color-dark);
    border: none;
    padding: 2% 4%;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.projekat-btn:hover {
    background-color: #e0e0e0;
}

.projekat-image {
    position: absolute;
    right: 0;
    bottom: -7px;
    z-index: 3;
    width: 55vh;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.5s;
}

.projekat-image img {
    width: 100%;
    height: auto;
}

/* RESPONSIVE STYLES */
@media (max-width: 1200px) {
    .services-section, .skills-section {
        padding: 4%;
    }
    
    .services-section h1, .skills-section h1 {
        font-size: 2rem;
    }

    .service-card {
        width: 16.25rem;
    }
}

@media (max-width: 1100px) {
    .skills-section h2 {
        font-size: 1.625rem;
    }
    
    .text h1 {
        font-size: 2.5rem;
    }
    
    .about-container {
        gap: 3%;
    }
}

@media (max-width: 900px) {
    .skill-card {
        width: 16.25rem;
    }
    
    .service-card {
        width: calc(50% - 0.9375rem);
    }
    
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 1.875rem;
        max-width: 80%;
    }
    
    .about-info li, .about-skills {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0;
        min-height: 85vh;
    }
    
    .image-container {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100% - 80px - 15%);
        z-index: 1;
        transform: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .image-wrapper {
        width: 90%;
        height: 100%;
        max-width: none;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 0;
    }
    
    .image-wrapper img {
        width: 100%;
        height: 110%;
        object-fit: contain;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
        opacity: 0.8;
        max-height: none;
        margin-bottom: -5%;
    }
    
    .text {
        position: absolute;
        bottom: 10%;
        left: 0;
        width: 100%;
        z-index: 4;
        text-align: center;
        padding: 5%;
        box-sizing: border-box;
        transform: none;
        background-color: rgba(18, 18, 18, 0.7);
    }
    
    body.light .text {
        background-color: rgba(245, 245, 245, 0.7);
    }
    
    .text p {
        margin-bottom: 0.625rem;
    }
    
    .text h1 {
        font-size: 1.75rem;
        margin: 0.625rem 0;
    }
    
    .buttons {
        display: flex;
        justify-content: center;
        gap: 0.625rem;
        margin-top: 0.9375rem;
    }
    
    .skills-section, .services-section {
        padding: 3.125rem 1.25rem;
    }
    
    .skills-container, .services-container {
        gap: 0.9375rem;
    }
    
    .skill-card, .service-card {
        width: calc(50% - 0.9375rem);
        padding: 1rem;
    }
    
    .skill-card:nth-child(-n+4),
    .skill-card:nth-child(n+5),
    .service-card:nth-child(odd),
    .service-card:nth-child(even) {
        transform: translateX(0) translateY(20px);
    }
    
    .skills-section.appear .skill-card,
    .services-section.appear .service-card {
        transform: translateY(0);
    }
    
    .skill-circle {
        width: 6.25rem;
        height: 6.25rem;
    }
    
    .skill-circle circle {
        cx: 50;
        cy: 50;
        r: 42;
        stroke-width: 7;
    }
    
    .skill-circle .progress {
        stroke: var(--primary-color);
        stroke-dasharray: 314;
        transition: stroke-dashoffset 1.5s ease-out;
    }
    
    .skill-percent {
        font-size: 1.25rem;
    }
    
    .service-card {
        width: 100%;
        max-width: 18.75rem;
        margin: 0 auto 0.9375rem;
    }

    .service-icon {
        width: 3.125rem;
        height: 3.125rem;
    }
    
    .service-icon img {
        width: 1.5625rem;
        height: 1.5625rem;
    }
    
    /* Stats section responsive */
    .stats-container {
        gap: 4%;
    }
    
    .stat-item {
        min-width: 45%;
        padding: 0.9375rem;
    }
    
    .stat-item i {
        font-size: 1.875rem;
    }
    
    .stat-item h2 {
        font-size: 1.5rem;
    }
    
    .about-image {
        max-width: 95%;
    }
    
    /* Project section responsiveness */
    .projekat-wrapper {
        padding-top: 15%;
    }
    .projekat-section {
        flex-direction: column;
        padding: 12% 5%;
    }
    .projekat-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 5%;
    }
    .projekat-content h2 {
        font-size: 1.5rem;
    }
    .projekat-content p {
        font-size: 0.9rem;
    }
    .projekat-btn {
        font-size: 0.9rem;
        padding: 3% 6%;
    }
    .projekat-image {
        position: relative;
        bottom: auto;
        width: 70%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .text h1 {
        font-size: 1.5rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        margin: 0.3125rem 0;
        width: 80%;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 90%;
        max-width: none;
        margin-bottom: 0.9375rem;
    }
    
    .skills-section h2 {
        font-size: 1.5rem;
    }
    
    .skills-section p {
        font-size: 0.875rem;
        margin-bottom: 1.875rem;
    }
    
    .skill-card, .service-card {
        width: 100%;
        max-width: 18.75rem;
        margin: 0 auto 0.9375rem;
    }
    
    .skill-card h3 {
        font-size: 1.125rem;
    }
    
    .skill-details {
        font-size: 0.875rem;
    }
    
    .skill-circle {
        width: 5.625rem;
        height: 5.625rem;
    }
    
    .skill-circle circle {
        cx: 45;
        cy: 45;
        r: 37;
        stroke-width: 6;
    }
    
    .skill-circle .progress {
        stroke: var(--primary-color);
        stroke-dasharray: 232.5;
        transition: stroke-dashoffset 1.5s ease-out;
    }
    
    .skill-percent {
        font-size: 1.125rem;
    }
    
    .services-section h3 {
        font-size: 0.75rem;
    }
    
    .services-section h1 {
        font-size: 1.75rem;
    }
    
    .services-description {
        font-size: 0.875rem;
        margin-bottom: 1.875rem;
    }
    
    .service-card h2 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.8125rem;
    }
}
/* Root variables */
:root {
    --primary-color: #4a89dc;
    --primary-hover: #3a70c0;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --light-card-bg: #ffffff;
    --dark-card-bg: #2a2a2a;
    --light-text: #333;
    --dark-text: #e0e0e0;
    --light-secondary-text: #555;
    --dark-secondary-text: #c5c5c5;
    --light-border: #eee;
    --dark-border: #444;
    --light-shadow: rgba(0, 0, 0, 0.1);
    --dark-shadow: rgba(0, 0, 0, 0.3);
    --light-primary-accent: #4a89dc;
    --dark-primary-accent: #5e9eff;
}

/* Common section styles */
.promo-section, .faq-section, .testimonials-section {
    padding: 60px 0 70px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.promo-section {
    background-color: var(--light-bg);
    text-align: center;
}

.faq-section {
    background-color: #f5f5f5;
}

.testimonials-section {
    background-color: #f9f9f9;
}

.dark .promo-section {
    background-color: var(--dark-bg);
    color: var(--light-bg);
}

.dark .faq-section {
    background-color: #1f1f1f;
    color: #f5f5f5;
}

.dark .testimonials-section {
    background-color: var(--dark-bg);
    color: #f9f9f9;
}

/* Container styles */
.promo-container, .testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Heading styles */
.promo-section h2, .faq-section h2, .testimonials-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.faq-section h2, .testimonials-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--light-text);
}

.promo-section h2 {
    color: var(--light-primary-accent);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.dark .promo-section h2, .dark .faq-item h3, .dark .promo-content strong {
    color: var(--dark-primary-accent);
}

.dark .faq-section h2, .dark .testimonials-section h2 {
    color: var(--dark-text);
}

/* Card styles */
.promo-content, .faq-item, .testimonial-card {
    background-color: var(--light-card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--light-shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.promo-content {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 25px;
}

.testimonial-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.dark .promo-content, .dark .faq-item, .dark .testimonial-card {
    background-color: var(--dark-card-bg);
    box-shadow: 0 5px 15px var(--dark-shadow);
}

.faq-item:hover, .testimonial-card:hover {
    transform: translateY(-5px);
}

.faq-item:hover {
    box-shadow: 0 8px 20px var(--light-shadow);
}

.testimonial-card:hover {
    box-shadow: 0 10px 25px var(--light-shadow);
}

.dark .faq-item:hover {
    box-shadow: 0 8px 20px var(--dark-shadow);
}

.dark .testimonial-card:hover {
    box-shadow: 0 10px 25px var(--dark-shadow);
}

/* Text styles */
.promo-content p, .faq-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
}

.promo-content p {
    margin-bottom: 20px;
}

.faq-item p {
    color: var(--light-secondary-text);
    font-size: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--light-secondary-text);
    font-style: italic;
    position: relative;
    padding: 0 10px;
}

.promo-content strong {
    color: var(--light-primary-accent);
    font-weight: 700;
}

.dark .faq-item p, .dark .testimonial-content p {
    color: var(--dark-secondary-text);
}

/* Features list */
.promo-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.promo-features li {
    font-size: 1.1rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.promo-features li i {
    color: var(--light-primary-accent);
    margin-right: 10px;
    font-size: 1.2rem;
}

.dark .promo-features li i {
    color: var(--dark-primary-accent);
}

/* Button style */
.promo-btn {
    background-color: var(--light-primary-accent);
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 4;
}

.promo-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 112, 192, 0.3);
}

/* FAQ item styles */
.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--light-primary-accent);
    font-weight: 600;
}

/* Testimonial styles */
.testimonial-content {
    flex-grow: 1;
    margin-bottom: 20px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 3rem;
    color: var(--light-primary-accent);
    opacity: 0.2;
    position: absolute;
    z-index: 1;
}

.dark .testimonial-content p::before,
.dark .testimonial-content p::after {
    color: var(--dark-primary-accent);
}

.testimonial-content p::before {
    top: -20px;
    left: -15px;
}

.testimonial-content p::after {
    bottom: -40px;
    right: -15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--light-border);
    padding-top: 20px;
    position: relative;
}

.dark .testimonial-author {
    border-top: 1px solid var(--dark-border);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid var(--light-primary-accent);
}

.dark .testimonial-author img {
    border: 3px solid var(--dark-primary-accent);
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--light-text);
    font-weight: 600;
}

.dark .author-info h4 {
    color: var(--dark-text);
}

.author-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #777;
}

.dark .author-info p {
    color: #a0a0a0;
}

/* Additional styles for skill-related elements */
.skill-circle .progress,
.skill-divider,
.service-icon,
.projekat-section {
    background-color: var(--primary-color);
}

.projekat-btn {
    color: var(--primary-color);
}

/* Media queries */
@media (max-width: 1100px) {
    .testimonials-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .faq-container,
    .testimonials-container {
        grid-template-columns: 1fr;
    }
}

/* FAQ section animations */
.faq-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.faq-section.appear {
    opacity: 1;
    transform: translateY(0);
}

.faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.faq-section.appear .faq-item:nth-child(1) { transition-delay: 0.2s; }
.faq-section.appear .faq-item:nth-child(2) { transition-delay: 0.3s; }
.faq-section.appear .faq-item:nth-child(3) { transition-delay: 0.4s; }
.faq-section.appear .faq-item:nth-child(4) { transition-delay: 0.5s; }

.faq-section.appear .faq-item {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials section animations */
.testimonials-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.testimonials-section.appear {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.testimonials-section.appear .testimonial-card:nth-child(1) { transition-delay: 0.3s; }
.testimonials-section.appear .testimonial-card:nth-child(2) { transition-delay: 0.4s; }
.testimonials-section.appear .testimonial-card:nth-child(3) { transition-delay: 0.5s; }

.testimonials-section.appear .testimonial-card {
    opacity: 1;
    transform: translateY(0);
}

/* Stats section enhanced animations */
.stats-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.stats-section.appear {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease-out;
}

.stats-section.appear .stat-item:nth-child(1) {
    transition-delay: 0.2s;
    animation: countUp 2s ease-out 0.2s forwards;
}

.stats-section.appear .stat-item:nth-child(2) {
    transition-delay: 0.3s;
    animation: countUp 2s ease-out 0.3s forwards;
}

.stats-section.appear .stat-item:nth-child(3) {
    transition-delay: 0.4s;
    animation: countUp 2s ease-out 0.4s forwards;
}

.stats-section.appear .stat-item:nth-child(4) {
    transition-delay: 0.5s;
    animation: countUp 2s ease-out 0.5s forwards;
}

.stats-section.appear .stat-item {
    opacity: 1;
    transform: scale(1);
}

@keyframes countUp {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

/* Projects Section - Redizajn */
.projects-section {
    padding: 5%;
    background-color: var(--background-color);
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

body.dark .projects-section {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.projects-section.appear {
    opacity: 1;
    transform: translateY(0);
}

.projects-section h2 {
    font-family: var(--heading-font);
    font-size: var(--h2-size);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.projects-description {
    font-family: var(--body-font);
    font-size: var(--body-size);
    color: var(--text-light);
    max-width: 40.625rem;
    margin: 0.9375rem auto 2.5rem;
    line-height: 1.6;
}

.projects-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    max-width: 90%;
    margin: 0 auto;
}

.project-card {
    background: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    width: 18.75rem;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark .project-card {
    background: #2a2a2a;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 137, 220, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: white;
    color: var(--primary-color);
}

.project-info {
    text-align: center;
}

.project-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 2.5rem;
    font-size: var(--small-size);
    font-weight: 600;
    margin-bottom: 0.9375rem;
}

.project-info h3 {
    font-family: var(--heading-font);
    font-size: var(--h3-size);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.9375rem;
    letter-spacing: 1px;
}

.project-info p {
    font-family: var(--body-font);
    font-size: var(--body-size);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-category {
    font-family: var(--body-font);
    font-size: var(--small-size);
    font-weight: 600;
}

.project-link {
    font-family: var(--body-font);
    font-size: var(--body-size);
    font-weight: 600;
}

/* Contact Section - Redizajn */
.contact-section {
    position: relative;
    overflow: hidden;
    background-color: #050505;
    color: #fff;
    padding: 80px 20px;
    margin-top: 50px;
    transition: all 0.5s ease-in-out;
    border: 2px solid rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

body.light .contact-section {
    background-color: #f0f0f0;
    color: #121212;
    border: 2px solid rgba(0, 150, 150, 0.5);
    box-shadow: 0 0 15px rgba(0, 150, 150, 0.2);
}

/* Matrix Canvas Background */
.contact-matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3; /* Povećan opacity sa 0.1 na 0.3 */
    z-index: 0;
}

/* Cyber Grid Background */
.contact-cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    animation: contactGridPulse 8s infinite alternate;
}

@keyframes contactGridPulse {
    0% {
        background-size: 20px 20px;
        opacity: 0.1;
    }
    100% {
        background-size: 22px 22px;
        opacity: 0.2;
    }
}

/* Glowing Orbs */
.contact-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15), transparent 70%);
    filter: blur(20px);
    animation: contactGlowPulse 6s infinite alternate, contactGlowMove 30s infinite linear;
    z-index: 0;
}

.contact-glow:nth-child(1) {
    top: -50px;
    left: 10%;
}

.contact-glow:nth-child(2) {
    top: 30%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.12), transparent 70%);
    animation: contactGlowPulse 7s infinite alternate, contactGlowMove 25s infinite linear reverse;
}

.contact-glow:nth-child(3) {
    bottom: -30px;
    left: 40%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.08), transparent 70%);
    animation: contactGlowPulse 5s infinite alternate, contactGlowMove 20s infinite linear;
}

@keyframes contactGlowPulse {
    0% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes contactGlowMove {
    0% { transform: translateX(-30px) translateY(0); }
    25% { transform: translateX(-15px) translateY(-15px); }
    50% { transform: translateX(0) translateY(-30px); }
    75% { transform: translateX(15px) translateY(-15px); }
    100% { transform: translateX(30px) translateY(0); }
}

/* Data Blocks Animation */
.contact-data-blocks {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    display: flex;
    justify-content: space-around;
    z-index: 1;
}

.contact-data-block {
    width: calc(100% / 20);
    height: 100%;
    background-color: rgba(0, 255, 255, 0.2);
    animation: contactDataPulse 1.5s infinite alternate;
}

@keyframes contactDataPulse {
    0% {
        height: 5px;
        opacity: 0.2;
    }
    100% {
        height: 15px;
        opacity: 0.5;
    }
}

/* Applying animation delays to data blocks */
.contact-data-block:nth-child(1) { animation-delay: 0.1s; }
.contact-data-block:nth-child(2) { animation-delay: 0.2s; }
.contact-data-block:nth-child(3) { animation-delay: 0.3s; }
.contact-data-block:nth-child(4) { animation-delay: 0.4s; }
.contact-data-block:nth-child(5) { animation-delay: 0.5s; }
.contact-data-block:nth-child(6) { animation-delay: 0.6s; }
.contact-data-block:nth-child(7) { animation-delay: 0.7s; }
.contact-data-block:nth-child(8) { animation-delay: 0.8s; }
.contact-data-block:nth-child(9) { animation-delay: 0.9s; }
.contact-data-block:nth-child(10) { animation-delay: 1.0s; }
.contact-data-block:nth-child(11) { animation-delay: 1.1s; }
.contact-data-block:nth-child(12) { animation-delay: 1.2s; }
.contact-data-block:nth-child(13) { animation-delay: 1.3s; }
.contact-data-block:nth-child(14) { animation-delay: 1.4s; }
.contact-data-block:nth-child(15) { animation-delay: 1.5s; }

/* Laser Scanning Effect */
.contact-laser-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.contact-laser {
    position: absolute;
    background: rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.9), 0 0 30px rgba(0, 255, 255, 0.7);
}

/* Horizontalna linija koja se kreće gore-dole */
.contact-laser-horizontal {
    height: 2px;
    width: 100%;
    animation: contactLaserScanVertical 10s infinite ease-in-out;
}

/* Vertikalna linija koja se kreće levo-desno */
.contact-laser-vertical {
    width: 2px;
    height: 100%;
    animation: contactLaserScanHorizontal 10s infinite ease-in-out;
}

/* Uklanjamo dot koji se vrti */
.contact-laser-dot {
    display: none;
}

/* Animacija za kretanje gore-dole */
@keyframes contactLaserScanVertical {
    0% { top: -2px; }
    50% { top: calc(100% - 2px); }
    100% { top: -2px; }
}

/* Animacija za kretanje levo-desno */
@keyframes contactLaserScanHorizontal {
    0% { left: -2px; }
    50% { left: calc(100% - 2px); }
    100% { left: -2px; }
}

/* Uklanjanje dijagonalnih linija */
.contact-diagonal-lines {
    display: none; /* Sakrivamo dijagonalne linije */
}

/* Particles and Diagonal Lines */
.contact-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Povećanje opacity za footer matrix canvas */
.footer-matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3; /* Povećan opacity sa 0.1 na 0.3 */
    z-index: 0;
}

/* Contact Section Title */
.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 20px rgba(0, 229, 255, 0.3);
}

body.light .contact-section h2 {
    color: #008b8b;
    text-shadow: none;
}

.contact-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contact-subtitle .terminal-text {
    color: #00e5ff;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
}

.contact-subtitle .typewriter {
    font-family: monospace;
    font-size: 1.2rem;
    color: #e0e0e0;
    animation: typing 3.5s steps(40, end);
    white-space: normal;
    overflow: visible;
}

/* Contact Container */
.contact-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    position: relative;
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-info::before, .contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, transparent 100%);
    z-index: -1;
    transition: all 0.5s ease;
}

.contact-info:hover::before, .contact-form:hover::before {
    opacity: 0.2;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%);
}

/* Contact Info Header */
.contact-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 15px;
}

.contact-hologram {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

/* Cyber Title */
.cyber-title {
    font-size: 1.5rem;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transition: all 0.3s ease;
}

body.light .cyber-title {
    color: #008b8b;
    text-shadow: none;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item img {
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.7));
    transition: all 0.3s ease;
}

.contact-item:hover img {
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 1));
    transform: scale(1.1);
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #00e5ff;
}

body.light .contact-item h3 {
    color: #008b8b;
}

.contact-item p {
    font-size: 0.95rem;
    margin: 0;
    color: #b0b3b8;
}

body.light .contact-item p {
    color: #444;
}

.cyber-link {
    color: #00e5ff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.cyber-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #00e5ff, transparent);
    transition: width 0.3s ease;
}

.cyber-link:hover {
    color: #00e5ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.cyber-link:hover::after {
    width: 100%;
}

body.light .cyber-link {
    color: #008b8b;
}

body.light .cyber-link:hover {
    color: #00a0a0;
    text-shadow: none;
}

/* Social Icons */
.contact-social {
    margin-top: 25px;
    position: relative;
}

.contact-social h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

body.light .contact-social h3 {
    color: #008b8b;
    text-shadow: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-icon-link {
    text-decoration: none;
}

.social-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), transparent);
    border: 1px solid rgba(0, 229, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.3s ease;
}

.social-icon-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2);
}

.social-icon-wrapper:hover::before {
    opacity: 1;
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    filter: invert(80%) sepia(58%) saturate(456%) hue-rotate(152deg) brightness(100%) contrast(101%);
}

.social-icon-wrapper:hover .social-icon {
    transform: scale(1.2);
}

/* Form Header */
.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 15px;
}

.form-header-decoration {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
}

.form-header h3 {
    margin: 0 15px;
}

/* Cyber Input Styles */
.cyber-input-container {
    position: relative;
    margin-bottom: 20px;
}

.cyber-input-container label {
    display: block;
    margin-bottom: 8px;
    color: #00e5ff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.light .cyber-input-container label {
    color: #008b8b;
}

.cyber-input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cyber-textarea {
    resize: vertical;
    min-height: 120px;
}

.cyber-input:focus {
    outline: none;
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    background-color: rgba(0, 229, 255, 0.1);
}

body.light .cyber-input {
    background-color: rgba(0, 139, 139, 0.05);
    border: 1px solid rgba(0, 139, 139, 0.3);
    color: #333;
}

body.light .cyber-input:focus {
    border-color: rgba(0, 139, 139, 0.8);
    box-shadow: 0 0 15px rgba(0, 139, 139, 0.2);
    background-color: rgba(0, 139, 139, 0.1);
}

.input-focus-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00e5ff, transparent);
    transition: width 0.3s ease;
    z-index: 0;
}

.cyber-input:focus + .input-focus-effect {
    width: 100%;
}

/* Checkbox Styles */
.cyber-checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.cyber-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #b0b3b8;
}

body.light .checkbox-label {
    color: #444;
}

.checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 229, 255, 0.5);
    background-color: rgba(0, 229, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cyber-checkbox:checked + .checkbox-label::before {
    background-color: rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.checkbox-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #00e5ff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0);
    transition: all 0.3s ease;
}

.cyber-checkbox:checked + .checkbox-label::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

body.light .checkbox-label::before {
    border: 1px solid rgba(0, 139, 139, 0.5);
    background-color: rgba(0, 139, 139, 0.05);
}

body.light .cyber-checkbox:checked + .checkbox-label::before {
    background-color: rgba(0, 139, 139, 0.2);
    border-color: rgba(0, 139, 139, 0.8);
    box-shadow: 0 0 10px rgba(0, 139, 139, 0.3);
}

body.light .checkbox-label::after {
    border-color: #008b8b;
}

/* Cyber Button */
.cyber-btn {
    position: relative;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.05));
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 0.9rem;
    overflow: hidden; /* Osigurava da efekti ne izlaze van dugmeta */
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 5px rgba(0, 229, 255, 0.3);
    width: auto; /* Promena sa 100% na auto da ne uzima celu širinu */
    display: inline-block; /* Promena sa block na inline-block */
}

.cyber-btn .btn-content {
    position: relative;
    z-index: 2;
}

.cyber-btn .btn-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 229, 255, 0.3);
    transform: translateX(-100%);
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden; /* Dodatno osiguranje da efekat ne izlazi van */
}

.cyber-btn .btn-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden; /* Dodatno osiguranje da dekoracije ne izlaze van */
}

.cyber-btn .btn-decoration-1,
.cyber-btn .btn-decoration-2 {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
}

.cyber-btn .btn-decoration-1 {
    bottom: 5px;
    left: 0;
    width: 100%;
}

.cyber-btn .btn-decoration-2 {
    bottom: 10px;
    left: 10%;
    width: 80%;
}

.cyber-btn:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.1));
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

.cyber-btn:hover .btn-glitch {
    transform: translateX(100%);
}

.cyber-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 5px rgba(0, 229, 255, 0.3);
}

body.light .cyber-btn {
    background: linear-gradient(135deg, rgba(0, 139, 139, 0.1), rgba(0, 139, 139, 0.05));
    color: #008b8b;
    border: 1px solid rgba(0, 139, 139, 0.5);
    text-shadow: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 139, 139, 0.2);
}

body.light .cyber-btn .btn-glitch {
    background: rgba(0, 139, 139, 0.2);
}

body.light .cyber-btn .btn-decoration-1,
body.light .cyber-btn .btn-decoration-2 {
    background: linear-gradient(90deg, transparent, rgba(0, 139, 139, 0.3), transparent);
}

body.light .cyber-btn:hover {
    background: linear-gradient(135deg, rgba(0, 139, 139, 0.2), rgba(0, 139, 139, 0.1));
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15), 0 0 10px rgba(0, 139, 139, 0.3);
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid;
}

.alert.success {
    background-color: rgba(0, 255, 128, 0.1);
    border-color: rgba(0, 255, 128, 0.3);
    color: #00ff80;
}

.alert.error {
    background-color: rgba(255, 0, 80, 0.1);
    border-color: rgba(255, 0, 80, 0.3);
    color: #ff0050;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert.success::before {
    background-color: #00ff80;
}

.alert.error::before {
    background-color: #ff0050;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-section h2 {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-subtitle .typewriter {
        font-size: 1rem;
        text-align: center;
        white-space: normal;
        margin: 0 10px;
    }
    
    .contact-subtitle .terminal-text {
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .cyber-input {
        padding: 10px;
    }
    
    .cyber-input-container label {
        font-size: 0.85rem;
    }
    
    .contact-item {
        margin-bottom: 15px;
    }
    
    .contact-item h3 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .social-icons {
        justify-content: center;
        gap: 12px;
    }
    
    .social-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .contact-social h3 {
        display: block;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 40px 15px;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-info, .contact-form {
        padding: 15px;
    }
    
    .cyber-btn {
        padding: 10px 20px;
        width: 100%;
    }
    
    .form-header h3 {
        font-size: 1.3rem;
    }
    
    .cyber-title {
        font-size: 1.3rem;
    }
    
    .contact-info-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .contact-hologram {
        width: 30px;
        height: 30px;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
}
/* Critical CSS */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local('Poppins Light'), local('Poppins-Light'),
         url('../fonts/Poppins-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Poppins Regular'), local('Poppins-Regular'),
         url('../fonts/Poppins-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Poppins SemiBold'), local('Poppins-SemiBold'),
         url('../fonts/Poppins-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Poppins Bold'), local('Poppins-Bold'),
         url('../fonts/Poppins-Bold.woff2') format('woff2');
}

/* LCP optimization */
.container {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
    will-change: transform;
}

.text {
    content-visibility: auto;
    contain-intrinsic-size: 0 300px;
    will-change: transform;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Prevent layout shift */
.text h1 {
    min-height: 120px;
    margin: 0;
    line-height: 1.2;
}

.text p {
    min-height: 24px;
    margin: 0;
}

/* Animation optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Font loading state */
.fonts-loaded .text {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .feature-item i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    /* Fix za SEO stavku na mobilnom */
    .feature-item:nth-child(4) {
        margin-top: 0;
    }
}

/* Footer Divider - Cyber stil preseka između kontakt sekcije i footera */
.footer-divider {
    position: relative;
    height: 60px; /* Smanjeno sa 120px na 60px */
    background: transparent; /* Promena sa gradijenta na transparentno */
    margin-top: -1px;
    overflow: hidden;
    z-index: 5;
}

body.light .footer-divider {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
}

.divider-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 20px;
    z-index: 2;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), transparent);
}

body.light .divider-line {
    background: linear-gradient(90deg, transparent, rgba(0, 139, 139, 0.4), transparent);
}

.divider-icon {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-hexagon {
    position: relative;
    width: 30px;
    height: 30px;
    animation: dividerPulse 2s infinite alternate, dividerRotate 8s linear infinite;
}

.divider-hexagon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 255, 0.2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

body.light .divider-hexagon::before {
    background: rgba(0, 139, 139, 0.2);
    border: 1px solid rgba(0, 139, 139, 0.6);
    box-shadow: 0 0 15px rgba(0, 139, 139, 0.5);
}

.hexagon-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(0, 255, 255, 0.8);
    animation: innerPulse 1.5s infinite alternate;
}

body.light .hexagon-inner {
    background: rgba(0, 139, 139, 0.8);
}

@keyframes dividerPulse {
    0% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes dividerRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes innerPulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer-divider {
        height: 40px;
    }
    
    .divider-content {
        height: 40px;
    }
    
    .divider-icon {
        width: 30px;
        height: 30px;
        margin: 0 10px;
    }
    
    .divider-hexagon {
        width: 25px;
        height: 25px;
    }
    
    .hexagon-inner {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .divider-content {
        padding: 0 10px;
    }
    
    .divider-icon {
        margin: 0 5px;
    }
}

/* ===== FAQ Section Cyber Styling ===== */
.faq-section {
    position: relative;
    padding: 80px 20px;
    background-color: #050505;
    color: #fff;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Matrix canvas efekat */
.faq-matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 0;
}

/* Cyber Grid pozadina */
.faq-cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    animation: faqGridPulse 8s infinite alternate;
}

@keyframes faqGridPulse {
    0% {
        background-size: 20px 20px;
        opacity: 0.1;
    }
    100% {
        background-size: 22px 22px;
        opacity: 0.2;
    }
}

/* Svetleći efekti */
.faq-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15), transparent 70%);
    filter: blur(20px);
    animation: faqGlowPulse 6s infinite alternate, faqGlowMove 30s infinite linear;
    z-index: 0;
}

.faq-glow:nth-child(1) {
    top: -50px;
    left: 10%;
}

.faq-glow:nth-child(2) {
    top: 30%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.12), transparent 70%);
    animation: faqGlowPulse 7s infinite alternate, faqGlowMove 25s infinite linear reverse;
}

.faq-glow:nth-child(3) {
    bottom: -30px;
    left: 40%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.08), transparent 70%);
    animation: faqGlowPulse 5s infinite alternate, faqGlowMove 20s infinite linear;
}

@keyframes faqGlowPulse {
    0% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes faqGlowMove {
    0% { transform: translateX(-30px) translateY(0); }
    25% { transform: translateX(-15px) translateY(-15px); }
    50% { transform: translateX(0) translateY(-30px); }
    75% { transform: translateX(15px) translateY(-15px); }
    100% { transform: translateX(30px) translateY(0); }
}

/* Data blokovi */
.faq-data-blocks {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    display: flex;
    justify-content: space-around;
    z-index: 1;
}

.faq-data-block {
    width: calc(100% / 20);
    height: 100%;
    background-color: rgba(0, 255, 255, 0.2);
    animation: faqDataPulse 1.5s infinite alternate;
}

@keyframes faqDataPulse {
    0% {
        height: 5px;
        opacity: 0.2;
    }
    100% {
        height: 15px;
        opacity: 0.5;
    }
}

/* Laser skeniranje */
.faq-laser-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.faq-laser {
    position: absolute;
    background: rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.9), 0 0 30px rgba(0, 255, 255, 0.7);
}

/* Horizontalna linija koja se kreće gore-dole */
.faq-laser-horizontal {
    height: 2px;
    width: 100%;
    animation: faqLaserScanVertical 10s infinite ease-in-out;
}

/* Vertikalna linija koja se kreće levo-desno */
.faq-laser-vertical {
    width: 2px;
    height: 100%;
    animation: faqLaserScanHorizontal 10s infinite ease-in-out;
}

.faq-laser-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(0, 255, 255);
    box-shadow: 0 0 15px rgba(0, 255, 255, 1), 0 0 30px rgba(0, 255, 255, 0.8), 0 0 45px rgba(0, 255, 255, 0.6);
    animation: faqLaserDot 10s infinite linear;
    z-index: 1;
    display: none; /* Sakriveno kao u kontaktu */
}

@keyframes faqLaserScanVertical {
    0% { top: -2px; }
    50% { top: calc(100% - 2px); }
    100% { top: -2px; }
}

@keyframes faqLaserScanHorizontal {
    0% { left: -2px; }
    50% { left: calc(100% - 2px); }
    100% { left: -2px; }
}

@keyframes faqLaserDot {
    0% { left: 0; top: 0; }
    25% { left: 100%; top: 0; }
    50% { left: 100%; top: 100%; }
    75% { left: 0; top: 100%; }
    100% { left: 0; top: 0; }
}

/* Particles and Diagonal Lines */
.faq-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.faq-diagonal-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    display: none; /* Sakriveno kao u kontaktu */
}

/* FAQ naslov i podnaslov */
.faq-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 20px rgba(0, 229, 255, 0.3);
}

.faq-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.faq-subtitle .terminal-text {
    color: #00e5ff;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
}

.faq-subtitle .typewriter {
    font-family: monospace;
    font-size: 1.2rem;
    color: #e0e0e0;
    animation: typing 3.5s steps(40, end);
    white-space: normal;
    overflow: visible;
}

/* Container za FAQ */
.faq-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 30px;
}

.faq-column {
    flex: 1;
    min-width: 300px;
}

.faq-item {
    position: relative;
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 0;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: rgba(0, 30, 60, 0.3);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, transparent 100%);
    z-index: -1;
    transition: all 0.5s ease;
    opacity: 0;
}

.faq-item:hover::before, 
.faq-item.active::before {
    opacity: 0.2;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%);
}

.faq-question {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 20px;
    background: rgba(0, 40, 80, 0.4);
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.faq-question:hover {
    background: rgba(0, 60, 100, 0.5);
}

.faq-hologram {
    width: 35px;
    height: 35px;
    margin-right: 15px;
}

.faq-hologram .hologram-circle {
    background: rgba(0, 255, 255, 0.3);
}

.faq-hologram .hologram-ring {
    border: 2px solid rgba(0, 255, 255, 0.6);
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    color: #00e5ff;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.faq-toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
    margin-left: 15px;
}

.toggle-line {
    position: absolute;
    background-color: rgba(0, 255, 255, 0.9);
    width: 100%;
    height: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.8);
}

.toggle-line:first-child {
    top: 9px;
    transform: rotate(90deg);
}

.toggle-line:last-child {
    top: 9px;
}

.faq-item.active .toggle-line:first-child {
    transform: rotate(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 15, 30, 0.4);
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 25px;
}

.faq-answer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Dugme "Prikaži više" */
.faq-section .show-more-btn {
    position: relative;
    display: block;
    margin: 40px auto 0;
    z-index: 2;
}

.faq-section .cyber-btn .btn-content {
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

/* Responzivnost */
@media (max-width: 992px) {
    .faq-container {
        flex-direction: column;
    }
    
    .faq-column {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 20px;
    }
    
    .faq-section h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .faq-subtitle {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 2rem;
    }
    
    .faq-subtitle .typewriter {
        font-size: 1rem;
        text-align: center;
        white-space: normal;
        margin: 0 10px;
    }
    
    .faq-subtitle .terminal-text {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 18px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px;
    }
    
    .faq-hologram {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .faq-section {
        padding: 40px 15px;
    }
    
    .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .faq-item {
        margin-bottom: 15px;
    }
    
    .faq-section .show-more-btn {
        width: 100%;
        margin-top: 20px;
    }
}

/* Global common styles from contact and footer sections */
.global-title {
    font-size: 2.5rem;
    color: var(--cyber-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.global-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-accent), transparent);
    transition: width 0.3s ease;
}

.global-title:hover::after {
    width: 100%;
}

body.light .global-title {
    color: var(--cyber-accent-dark);
    text-shadow: 0 0 5px rgba(0, 139, 139, 0.3);
}

.global-subtitle {
    font-size: 1.5rem;
    color: var(--cyber-accent);
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.3);
    transition: all 0.3s ease;
}

body.light .global-subtitle {
    color: var(--cyber-accent-dark);
    text-shadow: none;
}

.global-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #b0b3b8;
    transition: all 0.3s ease;
}

body.light .global-text {
    color: #555;
}

.global-text:hover {
    transform: translateY(-3px);
}

.global-link {
    color: var(--cyber-accent);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.global-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--cyber-accent), transparent);
    transition: width 0.3s ease;
}

.global-link:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--cyber-glow);
}

body.light .global-link {
    color: var(--cyber-accent-dark);
}

body.light .global-link:hover {
    color: var(--cyber-accent-dark);
    text-shadow: 0 0 5px rgba(0, 139, 139, 0.3);
}

.global-link:hover::after {
    width: 100%;
}

/* Enhanced Cyber Buttons */
.cyber-button {
    position: relative;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.8), rgba(0, 229, 255, 0.4));
    border: none;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5),
                inset 0 0 10px rgba(0, 229, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
    z-index: 1;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.cyber-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.7),
                inset 0 0 15px rgba(0, 229, 255, 0.4);
}

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button:active {
    transform: translateY(1px);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

body.light .cyber-button {
    background: linear-gradient(135deg, rgba(0, 139, 139, 0.8), rgba(0, 139, 139, 0.4));
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 139, 139, 0.5),
                inset 0 0 10px rgba(0, 139, 139, 0.2);
    text-shadow: 0 0 5px rgba(0, 139, 139, 0.5);
}

body.light .cyber-button:hover {
    box-shadow: 0 0 20px rgba(0, 139, 139, 0.7),
                inset 0 0 15px rgba(0, 139, 139, 0.4);
}

/* Outline Cyber Button */
.cyber-button-outline {
    position: relative;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cyber-accent);
    background: transparent;
    border: 2px solid var(--cyber-accent);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3),
                inset 0 0 5px rgba(0, 229, 255, 0.1);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.cyber-button-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.1), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.cyber-button-outline:hover {
    color: #fff;
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5),
                inset 0 0 10px rgba(0, 229, 255, 0.3);
}

.cyber-button-outline:hover::before {
    left: 100%;
}

.cyber-button-outline:active {
    transform: translateY(1px);
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.3);
}

body.light .cyber-button-outline {
    color: var(--cyber-accent-dark);
    border-color: var(--cyber-accent-dark);
    box-shadow: 0 0 10px rgba(0, 139, 139, 0.3),
                inset 0 0 5px rgba(0, 139, 139, 0.1);
    text-shadow: 0 0 5px rgba(0, 139, 139, 0.3);
}

body.light .cyber-button-outline:hover {
    color: #fff;
    background: rgba(0, 139, 139, 0.1);
    box-shadow: 0 0 15px rgba(0, 139, 139, 0.5),
                inset 0 0 10px rgba(0, 139, 139, 0.3);
}

/* Responsive styles */
@media (max-width: 768px) {
    .global-title {
        font-size: 2rem;
    }
    
    .global-subtitle {
        font-size: 1.3rem;
    }
    
    .cyber-button, .cyber-button-outline {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .global-title {
        font-size: 1.7rem;
    }
    
    .global-subtitle {
        font-size: 1.1rem;
    }
    
    .global-text {
        font-size: 0.95rem;
    }
    
    .cyber-button, .cyber-button-outline {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

.faq-matrix-canvas {
    display: none; /* Sakrivamo matrix canvas u FAQ sekciji */
}

.faq-laser-container {
    display: none; /* Sakrivamo laser skener u FAQ sekciji */
}

.faq-laser {
    display: none;
}

.faq-laser-horizontal {
    display: none;
}

.faq-laser-vertical {
    display: none;
}

.faq-laser-dot {
    display: none;
}

.contact-hologram {
    display: none; /* Sakrivamo hologram u kontakt sekciji */
}

.faq-hologram {
    display: none; /* Sakrivamo hologram u FAQ sekciji */
}

.faq-hologram .hologram-circle {
    display: none;
}

.faq-hologram .hologram-ring {
    display: none;
}