/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 80px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f98b3c;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #231f20;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #f98b3c;
    color: white;
}

.btn-primary:hover {
    background-color: #959494 !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #f98b3c;
    border: 2px solid #f98b3c;
}

.btn-secondary:hover {
    background: #231f20;
    color: white;
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #f98b3c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Publishers Section */
.publishers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.publishers-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1e293b;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #64748b;
}

.features-list i {
    color: #10b981;
    margin-right: 12px;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #f98b3c;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #64748b;
    font-weight: 500;
}

.publishers-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1e293b;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: #f98b3c;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.contact-item p {
    color: #64748b;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-groups {
    margin-bottom: 1.5rem;
}

.form-groups label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-groups input,
.form-groups select,
.form-groups textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-groups input:focus,
.form-groups select:focus,
.form-groups textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-groups textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 90px;
    width: auto;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #cbd5e1;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
    background: #f8fafc;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.last-updated {
    color: #64748b;
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #1e293b;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #374151;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #4b5563;
}

.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Contact Form Popup */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Ensure popup is centered on all devices */
@media (max-height: 600px) {
    .contact-popup.show {
        align-items: flex-start;
        padding-top: 20px;
    }
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
}

.popup-content {
    position: relative;
    background: #fff;
    border: 2px solid #f98b3c;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(249, 139, 60, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.contact-popup.show .popup-content {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #f98b3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 139, 60, 0.3);
    z-index: 10000;
}

.popup-close:hover {
    background: #231f20;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(35, 31, 32, 0.4);
}

.popup-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.popup-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.popup-header h3 {
    color: #f98b3c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.popup-header p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-form label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.popup-form input,
.popup-form textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
    min-height: 44px; /* Better touch target for mobile */
}

.popup-form input[type="tel"] {
    font-family: inherit;
}

.popup-form input:focus,
.popup-form textarea:focus {
    outline: none;
    border-color: #f98b3c;
    box-shadow: 0 0 0 3px rgba(249, 139, 60, 0.1);
    transform: translateY(-1px);
}

.popup-form input:focus-visible,
.popup-form textarea:focus-visible {
    outline: 2px solid #f98b3c;
    outline-offset: 2px;
}

.popup-form input:hover,
.popup-form textarea:hover {
    border-color: #f98b3c;
}

.popup-form input:invalid,
.popup-form textarea:invalid {
    border-color: #dc3545;
}

.popup-form input:valid,
.popup-form textarea:valid {
    border-color: #10b981;
}

.popup-form textarea {
    resize: vertical;
    min-height: 100px;
}

.consent-text {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #f98b3c;
}

.form-check-label {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

.form-check-label a {
    color: #f98b3c;
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.popup-submit-btn {
    background: #f98b3c;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-submit-btn:hover {
    background: #231f20;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(35, 31, 32, 0.3);
}

.popup-submit-btn:active {
    transform: translateY(0);
}

.popup-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.popup-submit-btn.loading .btn-text {
    display: none;
}

.popup-submit-btn.loading .spinner {
    display: block;
}

.popup-message {
    display: none;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.popup-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.popup-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    margin-top: 0;
}

.popup-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.message-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.popup-message.success .message-icon {
    background: #10b981;
    color: #fff;
}

.popup-message.error .message-icon {
    background: #dc3545;
    color: #fff;
}

.message-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.message-text {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .publishers-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        justify-content: center;
    }
    
    .legal-content {
        padding: 2rem 1rem;
    }
    
    /* Popup responsive for tablet */
    .popup-content {
        max-width: 350px;
        padding: 20px;
    }
    
    .popup-header h3 {
        font-size: 1.3rem;
    }
    
    .popup-form {
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Popup responsive for mobile */
    .popup-content {
        max-width: 320px;
        padding: 15px;
    }
    
    .popup-header h3 {
        font-size: 1.2rem;
    }
    
    .popup-form {
        gap: 15px;
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        top: -12px;
        right: -12px;
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    /* Popup responsive for small mobile */
    .popup-content {
        max-width: 300px;
        padding: 12px;
    }
    
    .popup-header h3 {
        font-size: 1.1rem;
    }
    
    .popup-form input,
    .popup-form textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    /* Landscape mode support */
    .popup-content {
        max-height: 85vh;
        padding: 15px 20px;
    }
    
    .popup-form {
        gap: 12px;
    }
    
    .popup-form textarea {
        min-height: 80px;
        rows: 3;
    }
}

/* Full-width Hero Banner */
.hero.hero-banner {
    padding-top: 120px;
    background: linear-gradient(rgba(30,41,59,0.6), rgba(30,41,59,0.6)), url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1500&q=80') center center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}
.hero-banner-content {
    text-align: center;
    color: #fff;
    max-width: 900px;
    margin: 200px auto;
    z-index: 2;
}
.hero-title {
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hero-subtitle {
    color: #e0e7ef;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-buttons .btn-primary {
    background: #f98b3c;
    color: #fff;
    border: none;
}
.hero-buttons .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.hero-buttons .btn-secondary:hover {
    background: #fff;
    color: #231f20;
}
@media (max-width: 768px) {
    .hero.hero-banner {
        padding-top: 90px;
        min-height: 60vh;
        padding-bottom: 40px;
    }
    .hero-banner-content {
        padding: 0 16px;
        text-align: center;
        color: #fff;
        max-width: 95%;
        margin: 100px auto;
        z-index: 2;
    }
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        word-break: break-word;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem;
    }
    .hero-banner-content {
        padding: 0 8px;
    }
}

/* Team Section */
.team-section {
    background: #f8fafc;
    padding: 80px 0;
}
.team-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    scroll-behavior: smooth;
}
.team-member {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 0 16px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-width: 260px;
    max-width: 260px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}
.team-member:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.team-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid #f98b3c;
}
.team-member h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}
.team-member p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}
.team-slider-btn {
    background: #f98b3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
    margin: 0 8px;
}
.team-slider-btn:hover {
    background: #231f20;
}
@media (max-width: 900px) {
    .team-slider-wrapper {
        max-width: 100%;
    }
    .team-member {
        min-width: 220px;
        max-width: 220px;
        padding: 1.5rem 1rem;
    }
}
@media (max-width: 600px) {
    .team-slider {
        gap: 0;
    }
    .team-member {
        min-width: 80vw;
        max-width: 80vw;
        margin: 0 8px;
    }
    .team-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
}