/*
Theme Name: DigiCorp Theme
Description: Tema personalizzato per DigiCorp Systems startup
Version: 1.0
Author: DigiCorp
*/

:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.5rem;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/></svg>');
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.btn-digicorp {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-digicorp:hover {
    background-color: var(--dark-color) !important;
    border-color: var(--dark-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.display-3, .display-4, .display-5 {
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

.card {
    border-radius: 15px;
    overflow: hidden;
}

.card-body {
    padding: 2rem;
}

section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.navbar-dark {
    background-color: var(--dark-color) !important;
}

.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

main {
    margin-top: 0;
}

footer {
    background-color: var(--dark-color) !important;
    color: white;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.fas, .fab {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 40px 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: var(--dark-color) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-70 {
    min-height: 70vh;
}

.text-white-25 {
    color: rgba(255,255,255,0.25) !important;
}

.text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}

.hero-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.feature-icon {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-digicorp {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-digicorp:hover {
    background-color: var(--dark-color) !important;
    border-color: var(--dark-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card-hover:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-body {
    padding: 2rem;
}

.service-icon {
    transition: transform 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
}

.contact-icon {
    transition: all 0.3s ease;
}

.card:hover .contact-icon i {
    transform: scale(1.2);
}

/* Sections */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* About Section */
.about-visual {
    position: relative;
}

.stats-row {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-color));
    border-radius: 15px;
    padding: 2rem;
    color: white;
    margin-top: 2rem;
}

.stats-row h3 {
    color: white !important;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-card {
    height: 100%;
}

.cta-section {
    background: var(--gradient-primary) !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

.cta-section > * {
    position: relative;
    z-index: 2;
}

.social-links a {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.3);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
    color: white;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Utilities */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 60px 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}