/* Custom CSS for Devolfs OÜ Website */

/* Root Variables */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e9ecef;
    --shadow-light: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-medium: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 76px; /* Account for fixed navbar */
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.display-4 {
    font-weight: 700;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Custom Primary Color */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1e3f73;
    border-color: #1e3f73;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.9), rgba(30, 63, 115, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), #1e3f73);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    color: var(--primary-color);
}

/* About Cards */
.about-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
}

.value-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-3px);
}

.value-icon {
    color: var(--primary-color);
}

/* Expertise Cards */
.expertise-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    height: 100%;
}

.expertise-card:hover {
    transform: translateY(-3px);
}

.expertise-icon {
    color: var(--primary-color);
}

/* Company Info */
.company-info .info-item {
    margin-bottom: 1.5rem;
}

.info-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Feature List */
.feature-list .feature-item {
    margin-bottom: 1.5rem;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Portfolio */
.portfolio-filters {
    margin-bottom: 2rem;
}

.portfolio-filters .btn {
    margin-bottom: 0.5rem;
}

.portfolio-item {
    margin-bottom: 2rem;
}

.portfolio-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    text-align: center;
    padding: 2rem;
}

.portfolio-info {
    background: white;
}

/* Capability Cards */
.capability-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    height: 100%;
}

.capability-card:hover {
    transform: translateY(-3px);
}

.capability-icon {
    color: var(--primary-color);
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    height: 100%;
}

.testimonial-stars {
    color: var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    padding: 2rem;
}

.form-control {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-select {
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
}

.contact-icon {
    color: var(--primary-color);
}

/* Contact Info Card */
.contact-info-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
}

.response-feature {
    margin-bottom: 1rem;
}

/* Business Hours */
.business-hours {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.hours-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-item:last-child {
    border-bottom: none;
}

/* Process Steps */
.process-step {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    height: 100%;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-3px);
}

.step-number {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent a {
    color: var(--accent-color);
    text-decoration: none;
}

.cookie-consent a:hover {
    text-decoration: underline;
}

/* Cookie Settings */
.cookie-settings {
    border: 1px solid var(--border-color);
}

.cookie-category {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
    border-bottom: none;
}

/* Legal Pages */
.privacy-content h2,
.terms-content h2,
.cookie-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-content h3,
.terms-content h3,
.cookie-content h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-content ul,
.terms-content ul,
.cookie-content ul {
    margin-bottom: 1rem;
}

.privacy-content li,
.terms-content li,
.cookie-content li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

/* Footer */
footer {
    background: #1a1a1a !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin-bottom: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .portfolio-image img {
        height: 200px;
    }
    
    .service-image {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured::before {
        font-size: 0.75rem;
        padding: 0.2rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .portfolio-filters .btn {
        margin-bottom: 0.5rem;
    }
    
    .cookie-consent {
        padding: 0.5rem 0;
    }
    
    .cookie-consent .btn {
        margin-bottom: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.shadow-light {
    box-shadow: var(--shadow-light) !important;
}

.shadow-medium {
    box-shadow: var(--shadow-medium) !important;
}

.shadow-dark {
    box-shadow: var(--shadow-dark) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-consent,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .page-header {
        padding: 2rem 0 !important;
    }
}
