/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #1E293B;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1em;
    color: #64748B;
}

a {
    color: #2563EB;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1E40AF;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1;
}

.btn-primary {
    background-color: #2563EB;
    color: white;
}

.btn-primary:hover {
    background-color: #1E40AF;
    color: white;
}

.btn-accent {
    background-color: #10B981;
    color: white;
}

.btn-accent:hover {
    background-color: #059669;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #2563EB;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background-color: #2563EB;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text h1 {
    font-size: 24px;
    color: black;
    margin: 0;
}

.logo-text span {
    font-size: 12px;
    color: #64748B;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-link {
    color: black;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563EB;
}

.nav-cta {
    display: flex;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    background-color: white;
    border-top: 1px solid #E2E8F0;
    padding: 20px;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.8), rgba(30, 64, 175, 0.8)),
        url('https://images.unsplash.com/photo-1558618047-3c8c76ca7d13?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 300;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1E293B;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748B;
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* Data Center Expertise Section */
.datacenter-expertise {
    padding: 80px 0;
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    color: white;
    text-align: center;
}

.datacenter-content {
    max-width: 800px;
    margin: 0 auto;
}

.datacenter-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.datacenter-expertise h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.datacenter-highlight {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: white !important;
    line-height: 1.6;
    opacity: 1;
}

.datacenter-highlight strong {
    color: white !important;
    font-weight: 700;
}

.datacenter-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.datacenter-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
}

.datacenter-feature .feature-icon {
    font-size: 1.5rem;
}

.datacenter-cta .btn-large {
    font-size: 1.125rem;
    padding: 16px 32px;
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background-color: #F8FAFC;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 32px;
    margin-bottom: 48px;
    justify-content: center; 
}

.service-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; 
    display: flex; 
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
}

.service-card h3 {
    color: #1E293B;
    margin-bottom: 16px;
}

.service-card p {
    color: #64748B;
}

/* --- Prilagodba za responzivnost  --- */
/* Na manjim ekranima (npr. mobiteli), prikaži 1 stupac kako bi se izbjeglo preklapanje */
@media (max-width: 768px) { /* Prilagodite ovu vrijednost prema potrebi */
    .services-grid {
        grid-template-columns: 1fr; /* Jedan stupac na mobitelima */
    }
}

/* Detailed Services */
.services-detailed {
    padding: 80px 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.service-detail:last-child {
    margin-bottom: 0;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-content h3 {
    color: #1E293B;
    margin-bottom: 24px;
    font-size: 2rem;
}

.service-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    color: #10B981;
    flex-shrink: 0;
}

.feature-list strong {
    color: #1E293B;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.placeholder-image {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    border: 2px dashed #D1D5DB;
}

.placeholder-image span {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.placeholder-image p {
    color: #6B7280;
    font-weight: 500;
}

.placeholder-image.large {
    min-height: 500px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #F8FAFC;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text h2 {
    color: #1E293B;
    margin-bottom: 24px;
}

.about-text > p {
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-feature .feature-icon {
    font-size: 1.5rem;
    color: #2563EB;
    flex-shrink: 0;
}

.about-feature h4 {
    color: #1E293B;
    margin-bottom: 8px;
}

.about-feature p {
    color: #64748B;
}

.mission-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.mission-card h4 {
    color: #1E293B;
    margin-bottom: 12px;
}

.coverage-card {
    background: #2563EB;
    color: white !important;
    padding: 24px;
    border-radius: 12px;
    margin-top: 32px;
}

.coverage-card h4 {
    margin-bottom: 16px;
    color: white !important;
}

.coverage-card p {
    color: white !important;
}

.coverage-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coverage-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: flex;
    justify-content: center;
}



/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-card h3 {
    color: #1E293B;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    color: #2563EB;
    background: rgba(37, 99, 235, 0.1);
    padding: 12px;
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-item h4 {
    color: #1E293B;
    margin-bottom: 8px;
}

.contact-item p {
    margin: 0;
    color: #64748B;
}

.contact-item a {
    color: #2563EB;
    font-weight: 500;
}

.contact-item .note {
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 4px;
}



/* Footer */
.footer {
    background-color: #1E293B;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-text h3 {
    color: white;
    margin-bottom: 4px;
}

.footer-brand .logo-text span {
    color: #94A3B8;
}

.footer-brand p {
    color: #94A3B8;
    margin-top: 16px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section a {
    color: #94A3B8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-contact p {
    color: #94A3B8;
    margin: 8px 0;
}

.footer-contact a {
    color: #94A3B8;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: #94A3B8;
    margin: 8px 0;
    font-size: 14px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #1E40AF;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
    
    .contact-form-container,
    .contact-card,
    .map-container {
        padding: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .services-preview,
    .services-detailed,
    .about,
    .contact {
        padding: 60px 0;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

.stagger-delay-4 {
    transition-delay: 0.4s;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }