/* --- Global Reset & Variables --- */
:root {
    --color-teal: #5bc4c1; 
    --color-gold: #CBAA5C; 
    --color-dark-bg: #1A2B3C;
    --color-chart-bg: #000000;
    --color-text-dark: #222222;
    --color-text-light: #FFFFFF;
    --color-green-signal: #00D2A5;
    --color-red-signal: #D24F4F;
    --font-main: 'Lyon Arabic Display', 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* --- Background Design --- */
.page-wrapper {
    background-color: var(--color-teal);
    background-image: 
        linear-gradient(135deg, var(--color-gold) 25%, transparent 25%),
        linear-gradient(225deg, var(--color-gold) 25%, transparent 25%),
        linear-gradient(45deg, var(--color-dark-bg) 25%, transparent 25%),
        linear-gradient(315deg, var(--color-dark-bg) 25%, transparent 25%);
    background-position: top left, top right, bottom left, bottom right;
    background-size: 20% 20%;
    background-repeat: no-repeat;
    padding-bottom: 50px;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header --- */
header {
    text-align: center;
    padding: 40px 0;
    color: var(--color-text-dark);
}

.main-logo {
    max-width: 250px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

header h1 {
    font-weight: 900;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
    line-height: 1.2;
}

header .subhead {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Feature Cards Section --- */
.features-section {
    padding: 20px 0 60px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-card {
    background-color: var(--color-text-light);
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    max-width: 350px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Card Header */
.card-header {
    background-color: black;
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
}

.highlight-green {
    color: var(--color-green-signal);
}

/* --- FIXED IMAGE CONTAINER --- */
.card-image-container {
    position: relative;
    background-color: var(--color-chart-bg);
    width: 100%;
    height: 250px; 
    line-height: 0;
    overflow: hidden;
}

.chart-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Generic transition for smooth adjustments */
    transition: transform 0.3s ease;
}

/* --- INDIVIDUAL IMAGE CONTROLS --- */

/* Chart 1: Adjust scale here (e.g. 1.2, 1.5) */
.chart-1 {
    transform: scale(1.1); 
}

/* Chart 2: Adjust scale here */
.chart-2 {
    transform: scale(1.2);
}

/* Chart 3: Adjust scale here */
.chart-3 {
    transform: scale(1.15);
}

/* Card Footer */
.card-footer {
    background-color: #E0E8E7;
    text-align: center;
    padding: 15px;
    color: var(--color-dark-bg);
    flex-grow: 1;
}

.card-footer h4 {
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 1.0rem;
}

.card-footer p {
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Notify Me Section (FIXED FOR MOBILE) --- */
.notify-section {
    padding-bottom: 80px;
    margin-top: auto; /* Pushes to bottom if content is short */
}

.notify-box {
    /* Gold Gradient Border */
    background: linear-gradient(135deg, var(--color-gold) 0%, #8a6e2f 100%);
    padding: 2px; /* Thickness of the border */
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(203, 170, 92, 0.1);
}

.notify-inner {
    background: var(--color-dark-bg); /* Inner background matches page */
    border-radius: 10px; /* Slightly less than outer to fit */
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.notify-inner label {
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
    white-space: nowrap;
}

.email-form {
    flex-grow: 1;
    display: flex;
    gap: 10px;
    width: 100%;
}

.email-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.email-form input[type="email"]:focus {
    border-color: var(--color-teal);
    background: rgba(255,255,255,0.1);
}

.submit-btn {
    padding: 12px 25px;
    background-color: var(--color-teal);
    color: #0f172a;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.submit-btn:hover {
    background-color: white;
    box-shadow: 0 0 15px var(--color-teal);
}


/* --- Footer --- */
footer {
    background-color: black;
    color: white;
    padding: 25px 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-weight: 600;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-gold);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    header h1 { font-size: 1.8rem; }
    .cards-container { flex-direction: column; align-items: center; }
}

@media (max-width: 700px) {
    .notify-box { flex-direction: column; padding: 20px; text-align: center; }
    .notify-box label { margin-bottom: 10px; }
    .footer-content { flex-direction: column; gap: 15px; text-align: center; }
}