/* ====================================
   Marjan Software House - Main Styles
   ==================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Root Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(30, 64, 175, 0.9) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Section Spacing */
.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 0;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    font-family: 'Poppins', sans-serif;
}

.navbar-brand img {
    max-height: 45px;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.language-switcher {
    margin-left: 20px;
}

.language-switcher .btn {
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 25px;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--secondary-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero/hero-pattern.svg') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content .lead {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons .btn {
    margin: 10px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

/* Services Section */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 16px;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.service-card h4 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.service-card .btn-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* About Section */
.about-section {
    background-color: var(--light-color);
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.about-features li {
    padding: 15px 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.about-features li i {
    color: var(--success-color);
    margin-right: 15px;
    font-size: 1.3rem;
}

.about-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Stats Section */
.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-section .container {
    width: 100%;
}

.stats-section .row {
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item div {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.15);
    padding: 30px 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item .stat-number {
    font-size: 4rem;
    font-weight: 800;
    display: inline;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
}

.stat-item .stat-symbol {
    font-size: 3.5rem;
    font-weight: 800;
    display: inline;
    font-family: 'Poppins', sans-serif;
    margin-left: 5px;
}

.stat-item .stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-color);
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author-info h6 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.testimonial-author-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-item-content h5 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item-content p {
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .navbar-nav .nav-link {
        margin: 10px 0;
    }
    
    .stat-item .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}
