/* Bauhaus-inspired color palette */
:root {
    --red: #E73213;
    --blue: #005A9C;
    --yellow: #FFCC00;
    --black: #000000;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #CCCCCC;
    --dark-gray: #333333;
    
    --primary-font: 'Inter', sans-serif;
    --heading-weight: 700;
    --body-weight: 400;
    --section-spacing: 6rem;
}

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

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: var(--heading-weight);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--red);
    margin-top: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--blue);
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-spacing) 0;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-square {
    width: 30px;
    height: 30px;
    background-color: var(--blue);
    position: relative;
    z-index: 2;
}

.logo-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--red);
    margin-left: -15px;
    position: relative;
    z-index: 1;
}

.logo h1 {
    font-size: 1.5rem;
    margin-left: 1rem;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav li {
    font-weight: 600;
}

nav a {
    color: var(--dark-gray);
}

nav a:hover {
    color: var(--red);
}

.cta {
    background-color: var(--blue);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta:hover {
    background-color: var(--red);
}

/* Hero Section */
.hero {
    background-color: var(--white);
    padding-top: calc(var(--section-spacing) + 4rem);
    padding-bottom: var(--section-spacing);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-chart {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0px 8px 24px rgba(0, 0, 0, 0.15));
}

.primary-btn {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.primary-btn:hover {
    background-color: var(--blue);
}

/* Features Section */
.features {
    background-color: var(--light-gray);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-icon.red {
    background-color: var(--red);
}

.feature-icon.blue {
    background-color: var(--blue);
}

.feature-icon.yellow {
    background-color: var(--yellow);
}

.feature-icon.black {
    background-color: var(--black);
}

/* Gallery Section */
.gallery {
    background-color: var(--white);
}

.chart-types {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.chart-type {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-gray);
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.chart-type.active {
    background-color: var(--blue);
    color: var(--white);
}

.chart-display {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-canvas {
    width: 100%;
    height: 100%;
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about .container {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-content {
    flex: 3;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.bauhaus-elements {
    flex: 2;
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.element {
    position: absolute;
    transition: transform 0.7s ease;
}

.element.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--red);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.element.square {
    width: 150px;
    height: 150px;
    background-color: var(--blue);
    top: 60%;
    left: 40%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.element.triangle {
    width: 0;
    height: 0;
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 150px solid var(--yellow);
    top: 30%;
    left: 60%;
    transform: translate(-50%, -40%);
    z-index: 2;
}

.bauhaus-elements:hover .element.circle {
    transform: translate(-65%, -60%) scale(1.1);
}

.bauhaus-elements:hover .element.square {
    transform: translate(-40%, -40%) rotate(15deg);
}

.bauhaus-elements:hover .element.triangle {
    transform: translate(-50%, -40%) rotate(-10deg);
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: var(--primary-font);
    font-size: 1rem;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item svg {
    color: var(--blue);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo h3 {
    margin-left: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1rem;
    color: var(--gray);
    font-weight: 600;
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-group a {
    color: var(--white);
}

.link-group a:hover {
    color: var(--yellow);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container,
    .about .container {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .chart-types {
        justify-content: flex-start;
    }
}

/* Updated vibrant color palette */
:root {
  --primary-red: #FF5733;
  --primary-blue: #0088FF;
  --primary-yellow: #FFDD00;
  --primary-purple: #9C27B0;
  --primary-green: #4CAF50;
  --dark: #333333;
  --light: #FFFFFF;
  --gradient-1: linear-gradient(135deg, var(--primary-red), var(--primary-purple));
  --gradient-2: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
}

body {
  background-color: #f9f9f9;
  color: var(--dark);
}

header {
  background: var(--gradient-1);
  color: var(--light);
}

.logo-square {
  background-color: var(--primary-blue);
}

.logo-circle {
  background-color: var(--primary-red);
}

.primary-btn {
  background: var(--gradient-2);
  color: var(--light);
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero {
  background: linear-gradient(to right, #f9f9f9, #e9f5ff);
}

.feature-icon.red {
  background-color: var(--primary-red);
}

.feature-icon.blue {
  background-color: var(--primary-blue);
}

.feature-icon.yellow {
  background-color: var(--primary-yellow);
}

.feature-icon.purple {
  background-color: var(--primary-purple);
}

.feature-card {
  border-top: 4px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card:nth-child(1) {
  border-top-color: var(--primary-red);
}

.feature-card:nth-child(2) {
  border-top-color: var(--primary-blue);
}

.feature-card:nth-child(3) {
  border-top-color: var(--primary-yellow);
}

.feature-card:nth-child(4) {
  border-top-color: var(--primary-purple);
}

.chart-type.active {
  background-color: var(--primary-blue);
  color: white;
}

.element.circle {
  background-color: var(--primary-red);
}

.element.square {
  background-color: var(--primary-blue);
}

.element.triangle {
  border-bottom-color: var(--primary-yellow);
}

.contact {
  background: linear-gradient(135deg, #f5f7fa, #e4efe9);
}

footer {
  background: var(--dark);
  color: var(--light);
}

.footer-logo .logo-square {
  background-color: var(--primary-blue);
}

.footer-logo .logo-circle {
  background-color: var(--primary-red);
}