:root {
    --brand-color: #07649d;
    --brand-colorD: #102246;
    --bg-color: #0d1117;
    --container-bg: #161d26;
    --track-color: #303b47;
    --text-color: #c9d1d9;
    --help-color: #94a3b8;
    --btn-bg: #1f2935;
}

body {
    flex-direction: column;
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
}

a {
    text-decoration: none;
}

.Opti {
    color: var(--brand-color);
}

.Opti>span {
    color: var(--brand-colorD);
}

img {
    max-width: 100%;
}

/* Header */
header {
    min-width: -webkit-fill-available;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 3.5rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    box-sizing: border-box;
}

header .logo {
    display: flex;
    height: 60px;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1d4ed8;
}

header .logo img {
    max-height: 100%;
}

header nav a {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #1d4ed822;
    margin-left: 0.5rem;
    transition: 0.3s;
}

header nav a:hover {
    background: #1d4ed8;
    color: #fff;
}

header nav a:hover i {
    color: #fff6!important;
}

header nav a.signup {
    background: #1d4ed8;
    color: #fff;
    border: none;
}

header nav a.signup:hover {
    background: #1e40af;
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    padding: 0;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.hero .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;

}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 0 #fff,
        2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: auto;
    text-shadow: 3px 3px 9px rgba(0, 0, 0, 1);
}

/* Module Selection */
.modules {
    padding: 3rem 1rem;
    background: #f3f4f6;
    text-align: center;
}

.modules h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modules p {
    color: #555;
}

div:has(> .module-box){
    display: flex;
    justify-content: center;
}

.module-box {
    display: table;
    width: 270px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 12px;
    margin: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.module-box a {
    color: unset;
    display: flow-root;
    padding: 1.5rem;
}

.module-box:hover {
    transform: scale(1.05);
}

.module-box.selected {
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 50px;
    height: auto;
}

.module-box img {
    margin-bottom: 1rem;
    max-width: 50%;
    margin-right: 13px;
}

.module-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.module-box p {
    font-size: 0.95rem;
    color: #555;
}

/* Start Project Button */
#startBtn {
    display: none;
    margin-top: 1.5rem;
    padding: 0.7rem 2rem;
    background: #111827;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#startBtn:hover {
    background: #1f2937;
}

/* Content Section */
.content {
    padding: 4rem 7rem;
}

@media (max-width: 1200px) {
    .content {
        padding: 3rem 4rem;
    }
}

/* Tablet */


.content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.content p {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Content Box */
.content-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.content-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.content-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.content-box p {
    color: #fff;
    font-size: 1rem;
}

/* Responsive */
@media(max-width:768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}




/*  Ex */
.icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    transition: 0.3s ease;
    color: #444;
}

.module-box:hover .icon {
    transform: scale(1.1);
}

.module-box.selected.beam {
    border-color: #2563eb;
}

.module-box.selected.column {
    border-color: #16a34a;
}

.module-box.selected.wall {
    border-color: #ea580c;
}

.module-box.selected.beam .icon {
    color: #2563eb;
}

.module-box.selected.column .icon {
    color: #16a34a;
}

.module-box.selected.wall .icon {
    color: #ea580c;
}