/*
Theme Name:   MadSense Child
Theme URI:    https://madsense.s947.upress.link
Description:  Child theme for Hello Elementor - MadSense Custom Design
Author:       MadSense Team
Author URI:   https://madsense.s947.upress.link
Template:     hello-elementor
Version:      1.0.0
Text Domain:  madsense-child
*/

/* ========================================
   תצורת כיווניות RTL לעברית
======================================== */
body {
    direction: rtl;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Heebo', 'Rubik', Arial, sans-serif;
}

/* ========================================
   משתני צבעים ראשיים - Axon Pulse Inspired
   בהשראת הלוגו: ירוק MadSense + כהה ומודרני
======================================== */
:root {
    --primary-color: #6ABE45;        /* ירוק מהלוגו */
    --secondary-color: #2D3436;      /* אפור כהה */
    --accent-color: #00D9A3;         /* ירוק בהיר לאקצנטים */
    --text-dark: #FFFFFF;            /* טקסט לבן על רקע כהה */
    --text-light: #B2BEB5;           /* אפור בהיר */
    --bg-dark: #0D0D0D;              /* רקע שחור */
    --bg-dark-secondary: #1A1A1A;    /* רקע אפור כהה */
    --bg-white: #FFFFFF;
    --border-color: #333333;
}

/* ========================================
   עיצוב כללי
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    font-weight: 300;
}

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

/* ========================================
   כותרות - Fluid Typography (Axon Style)
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(48px, 6vw, 72px); }
h2 { font-size: clamp(40px, 5vw, 60px); }
h3 { font-size: clamp(32px, 4vw, 48px); }
h4 { font-size: clamp(24px, 3vw, 36px); }
h5 { font-size: clamp(20px, 2.5vw, 28px); }
h6 { font-size: clamp(18px, 2vw, 24px); }

/* ========================================
   כפתורים
======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(106, 190, 69, 0.4);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(106, 190, 69, 0.6);
    background: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

/* ========================================
   Header & Navigation
======================================== */
.site-header {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 25px 0;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 16px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    background: var(--bg-dark);
    padding: 120px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(106, 190, 69, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    color: white;
    margin-bottom: 30px;
    font-size: clamp(48px, 7vw, 82px);
}

.hero-section p {
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 40px;
    color: var(--text-light);
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Sections
======================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(40px, 5vw, 60px);
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========================================
   Grid Layout
======================================== */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ========================================
   Cards
======================================== */
.card {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(106, 190, 69, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

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

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

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

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section {
        padding: 50px 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   Axon Pulse Inspired Additions
======================================== */

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Backgrounds */
.section-dark {
    background-color: var(--bg-dark);
}

.section-dark-alt {
    background-color: var(--bg-dark-secondary);
}

/* Glowing Effect on Hover */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(106, 190, 69, 0.5);
}

/* Smooth Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Accent Border */
.accent-border {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* IoT Tech Style - Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

/* Grid Pattern Background (Optional) */
.grid-background {
    background-image:
        linear-gradient(rgba(106, 190, 69, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(106, 190, 69, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Minimal Line Separator */
.line-separator {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 30px auto;
}

/* Stats/Numbers Style */
.stat-number {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-light);
    font-weight: 300;
}

/* Logo Container */
.logo-container img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-container img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--primary-color));
}
