/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
    border-top: 3px solid #3498db;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    margin-right: 20px;
}

.cookie-title {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: #3498db;
    font-weight: bold;
}

.cookie-text p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cookie-text a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-text a:hover {
    color: #5dade2;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.btn-accept, .btn-decline, .btn-settings {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-accept {
    background: #27ae60;
    color: white;
}

.btn-accept:hover {
    background: #229954;
    transform: translateY(-1px);
}

.btn-decline {
    background: #e74c3c;
    color: white;
}

.btn-decline:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.btn-settings {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-settings:hover {
    background: #3498db;
    color: white;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 0.8rem;
    font-weight: normal;
}

.cookie-close {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cookie-close:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Navigation */
.navbar {
    background: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.hero-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

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

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

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Contact Info */
.contact-info {
    padding: 80px 0;
    background: #2c3e50;
    color: white;
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    margin-bottom: 15px;
    color: #3498db;
}

.contact-item a {
    color: #ecf0f1;
    text-decoration: none;
}

.contact-item a:hover {
    color: #3498db;
}

/* Footer */
.footer {
    background: #1a252f;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }
    
    .cookie-text {
        margin-right: 0;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .btn-accept, .btn-decline, .btn-settings {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .cookie-close {
        top: 5px;
        right: 5px;
    }
    
    .cookie-banner {
        padding: 15px;
    }
    
    /* Publisher-specific mobile styles */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .titles-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item.featured {
        grid-column: span 1;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-item:not(:last-child):after {
        display: none;
    }
    
    .timeline-number {
        align-self: flex-start;
    }
    
    .title-metrics {
        flex-direction: column;
        gap: 10px;
    }
    
    .portfolio-stats-small {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn-submit {
    background: #27ae60;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #219a52;
}

/* Publishing Stats */
.publishing-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.stat-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* Featured Titles */
.featured-titles {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.title-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.title-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.title-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.title-content {
    padding: 30px;
}

.title-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.title-content h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.title-metrics {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #27ae60;
    font-weight: bold;
}

.view-all-portfolio {
    text-align: center;
}

/* Publisher Testimonials */
.publisher-testimonials {
    padding: 80px 0;
    background: #2c3e50;
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info strong {
    display: block;
    margin-bottom: 5px;
}

.author-info span {
    opacity: 0.8;
    font-size: 0.9rem;
}

.author-metrics {
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

/* Process Preview */
.process-preview {
    padding: 80px 0;
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.process-step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.process-cta {
    text-align: center;
}

/* Portfolio-specific styles */
.portfolio-stats {
    padding: 60px 0;
    background: #3498db;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.portfolio-item.featured {
    grid-column: span 2;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-content {
    padding: 30px;
}

.portfolio-category {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.portfolio-stats-small {
    margin: 15px 0;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #27ae60;
    font-weight: bold;
}

.portfolio-tech {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.portfolio-tech span {
    background: #ecf0f1;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #2c3e50;
}

/* Software Categories */
.software-categories {
    padding: 80px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.category-count {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Timeline Styles */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:not(:last-child):after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    width: 2px;
    height: calc(100% + 20px);
    background: #3498db;
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-duration {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 15px;
}

/* Page-specific styles */
.page-header {
    background: #2c3e50;
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.page-content h2 {
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 8px;
}