/* Landing Page Styles */

:root {
    --hatmada-primary: #172554;
    --hatmada-blue-light: #75bfeb;
    --hatmada-blue-medium: #2987d6;
    --hatmada-orange: #e8541f;
}

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

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--hatmada-primary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.dropdown-link) {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover:not(.dropdown-link) {
    color: var(--hatmada-blue-light);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--hatmada-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--hatmada-blue-medium);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Feature highlights below hero */
.feature-highlights {
    background: white;
    padding: 4rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.feature-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-highlight {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.feature-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-highlight-icon {
    width: 60px;
    height: 60px;
    background: var(--hatmada-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-highlight h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--hatmada-primary);
}

.feature-highlight p {
    color: #666;
    line-height: 1.5;
}

/* User Types Section */
.user-types {
    padding: 5rem 0;
    background: #f8fafc;
}

.user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.user-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.freelancer-icon {
    background: var(--hatmada-primary);
}

.company-icon {
    background: var(--hatmada-blue-medium);
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--hatmada-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

/* Stats Section */
.stats {
    background: var(--hatmada-primary);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hatmada-blue-light);
}

/* How it works */
.how-it-works {
    padding: 5rem 0;
    background: #f8fafc;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--hatmada-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--hatmada-primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--hatmada-blue-light);
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--hatmada-blue-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--hatmada-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Hero Styles */
.hero {
    background: var(--hatmada-primary);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--hatmada-blue-light), var(--hatmada-blue-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-benefits {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.benefit-icon {
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex: 1;
    max-width: 250px;
}

.btn-hero-primary {
    background: white;
    color: var(--hatmada-primary);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
    background: var(--hatmada-blue-light);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-text strong {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.btn-text small {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.social-proof-avatars {
    display: flex;
    gap: -0.5rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hatmada-blue-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid white;
    margin-left: -0.5rem;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar:last-child {
    background: var(--hatmada-blue-light);
    font-size: 1.2rem;
}

.social-proof-text {
    font-size: 0.9rem;
    line-height: 1.3;
}

.hero-trust {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.trust-indicators {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.trust-icon {
    color: var(--hatmada-blue-light);
    font-weight: bold;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

.hero-dashboard {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-dots {
    display: flex;
    gap: 0.3rem;
}

.dashboard-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hatmada-blue-light);
}

.dashboard-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hatmada-blue-light);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.dashboard-chart {
    display: flex;
    gap: 0.5rem;
    align-items: end;
    height: 60px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--hatmada-blue-medium), var(--hatmada-blue-light));
    border-radius: 2px;
    animation: growUp 1s ease-out 1s both;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: var(--hatmada-primary);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
    white-space: nowrap;
}

/* More compact positioning to avoid cutoff */
.card-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 55%;
    left: 0%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 25%;
    right: 10%;
    animation-delay: 2s;
}

.card-icon {
    font-size: 0.9rem;
}

/* Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(117, 191, 235, 0.08), rgba(41, 135, 214, 0.08));
    animation: pulse 4s ease-in-out infinite;
}

/* More compact background circles */
.circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation-delay: 1s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes growUp {
    from {
        height: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Enhanced Responsive Design for Hero */
@media (max-width: 1400px) {
    /* Smaller floating cards on large screens to prevent cutoff */
    .floating-card {
        font-size: 0.7rem;
        padding: 0.5rem 0.7rem;
    }
    
    .card-icon {
        font-size: 0.8rem;
    }
}

@media (max-width: 1200px) {
    .hero .container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-dashboard {
        width: 280px;
    }
    
    /* Hide floating cards at this size */
    .floating-card {
        display: none;
    }
    
    /* Smaller background circles */
    .circle-1 {
        width: 150px;
        height: 150px;
        top: -75px;
        right: -75px;
    }
    
    .circle-2 {
        width: 120px;
        height: 120px;
        bottom: -60px;
        left: -60px;
    }
    
    .circle-3 {
        width: 80px;
        height: 80px;
    }
}

/* COMPLETE DASHBOARD REMOVAL ON TABLET AND MOBILE */
@media (max-width: 968px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }
    
    /* HIDE ENTIRE VISUAL SECTION */
    .hero-visual {
        display: none;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-benefits {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        max-width: 320px;
        width: 100%;
    }
    
    .trust-indicators {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-social-proof {
        justify-content: center;
    }
    
    /* Hide all background animations */
    .bg-circle {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .benefit-item {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .hero-cta {
        margin-bottom: 2rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 1rem 1.5rem;
        max-width: 100%;
    }
    
    .btn-text strong {
        font-size: 0.95rem;
    }
    
    .btn-text small {
        font-size: 0.75rem;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trust-item {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .hero-social-proof {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .social-proof-text {
        font-size: 0.85rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.9rem 1.2rem;
        gap: 0.8rem;
    }
    
    .btn-icon {
        font-size: 1.3rem;
    }
}

/* Landscape phone orientation - ALSO HIDE DASHBOARD */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 3rem 0 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }
    
    /* HIDE VISUAL ON LANDSCAPE TOO */
    .hero-visual {
        display: none;
    }
    
    .hero-benefits {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: row;
        gap: 0.8rem;
        justify-content: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        flex: 1;
        max-width: 200px;
        padding: 0.8rem 1rem;
    }
    
    .trust-indicators {
        justify-content: center;
        flex-direction: row;
        gap: 1rem;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .feature-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-highlights-grid {
        grid-template-columns: 1fr;
    }

    .user-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}


/* FOOTER OVERRIDE STYLES - 3 columns layout */
.footer-content {
    display: grid !important;
    grid-template-columns: 2fr 1.5fr 1fr !important;
    gap: 3rem !important;
    margin-bottom: 2rem !important;
    text-align: left !important;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--hatmada-blue-light);
}

/* Newsletter */
.btn-newsletter {
    background: var(--hatmada-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    max-width: 250px;
}

.btn-newsletter:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6b7280;
}

.newsletter-info {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Footer Bottom with line separator */
.footer-bottom {
    border-top: 1px solid #374151 !important;
    padding-top: 2rem !important;
    margin-top: 2rem !important;
    text-align: center !important;
}

.footer-slogan {
    margin-top: 0.5rem !important;
    font-size: 1.2rem !important;
    color: var(--hatmada-blue-light) !important;
    font-weight: 600 !important;
}
