/* Base Styles */
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-family-primary);
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100%;
    padding-bottom: 20px; /* Prevent content clipping in mobile view */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
    filter: brightness(100%) contrast(95%) saturate(110%);
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    background-size: 100% 100%;
    background-position: center;
    position: relative;
    box-sizing: border-box;
}

/* Header Styles */
header {
    background: rgba(0, 123, 255, 0.9);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(5px); /* Glassmorphism */
    transition: background 0.3s ease-in-out;
}

header h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 20px 0 40px;
    line-height: 1.5;
}

header .cta {
    display: inline-block;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header .cta:hover {
    background-color: #00ffcc;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
    margin: 20px 0;
    gap: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease-in-out;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: bold;
    color: #333;
}

.features article {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.features article:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.features h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #00476e;
    text-transform: uppercase;
    font-weight: 600;
}

.features p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Tool Section */
.tool-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f4f4f9;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.tool-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00476e;
}

.drag-drop {
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed #007bff;
    padding: 40px;
    margin: 40px auto;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.drag-drop:hover {
    background-color: rgba(0, 123, 255, 0.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

canvas {
    max-width: 100%;
    margin: 40px auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
}

.controls button {
    background-color: #00476e;
    color: #fff;
    padding: 12px 30px;
    margin: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.controls button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


/* Footer Styles */
footer {
    background-color: #007bff;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
}

footer a:hover {
    text-decoration: none;
    color: #f1f1f1;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #0056b3;
}

/* Additional Features */

/* Flexbox Container for Dynamic Layouts */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* Hover Animation */
.hover-scale:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

/* Advanced Transitions */
button {
    transition: all 0.3s ease-in-out;
}

button:hover {
    background-color: #0056b3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #0056b3;
}

/* Media Queries for Responsiveness */
@media only screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header h1 {
        font-size: 3rem;
    }

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

    .tool-section h2 {
        font-size: 2rem;
    }

    .drag-drop {
        padding: 30px;
    }

    .controls button {
        font-size: 1rem;
        padding: 10px 25px;
    }
}

/* Custom Properties (CSS Variables) */
:root {
    --primary-color: #000;
    --secondary-color: #f4f4f9;
    --hover-color: #00ffcc;
    --text-color: #333;
    --background-start: #f0f4f8;
    --background-end: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --font-family-primary: 'Roboto', sans-serif;
    --font-family-secondary: 'Arial', sans-serif;
    --transition-speed: 0.5s;
}

body {
    background-color: var(--secondary-color);
}

header {
    background-color: var(--primary-color);
}

footer {
    background-color: var(--primary-color);
}

footer a:hover {
    color: var(--hover-color);
}
