/* =================================================================
   Modern UI/UX Stylesheet for Rising Control Solutions
   File: modern-ui.css
   ================================================================= */

/* 1. Global Variables & Body Styles
-------------------------------------------------------------- */
:root {
    --primary-color: #0056b3; /* A strong, professional blue */
    --secondary-color: #007bff; /* A lighter, vibrant blue for accents */
    --dark-color: #2c3e50;    /* A deep, dark blue for text */
    --light-color: #f8f9fa;   /* A clean off-white for backgrounds */
    --text-color: #555;       /* Standard text color */
    --heading-color: var(--dark-color);
    --border-radius: 8px;     /* Rounded corners for a modern look */
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif; /* Using the new Google Font */
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.7;
}

/* 2. Typography
-------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* Bolder headings */
    color: #3399ff;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
p {
    font-size: 16px;
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* 3. Modern Button Styles
-------------------------------------------------------------- */
.btn-modern {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: white !important;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white !important;
}

.btn-modern:active {
    transform: translateY(0);
}

/* 4. Modern Card Styles
-------------------------------------------------------------- */
.card-modern {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden; /* Ensures content stays within rounded corners */
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-modern .card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: var(--heading-color);
}

.card-modern .card-body {
    padding: 2rem;
}

/* 5. Enhancing Existing Components (like Navbar & Footer)
-------------------------------------------------------------- */
.main-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.footer-main {
    background-color: var(--dark-color);
    color: #bdc3c7; /* Lighter text for dark background */
}

.footer-main h3, .footer-main h4 {
    color: #ffffff;
}

.footer-main a {
    color: #bdc3c7;
}

.footer-main a:hover {
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}