* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Font Declarations */
@font-face {
    font-family: 'Garet';
    src: url('../fonts/Garet-Heavy.woff2') format('woff2'),
         url('../fonts/Garet-Heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Garet';
    src: url('../fonts/Garet-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CopperplateCC-Regular';
    src: url('../fonts/Copperplate-Regular.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CopperplateCC-Bold';
    src: url('../fonts/CopperplateCC-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CopperplateCC-Heavy';
    src: url('../fonts/CopperplateCC-Heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Horizon';
    src: url('../fonts/horizon.otf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

.construction-page {
    background: linear-gradient(90deg, rgba(61, 61, 133, 1) 0%, rgba(149, 148, 207, 1) 100%); /* Desired background color */
    padding-bottom: 40px;
}

/* Main Content Card */
.main-content-card {
    background: linear-gradient(90deg, rgba(99, 98, 155, 1) 0%, rgba(61, 61, 133, 1) 100%);  
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    max-width: 90vw;
    margin: 40px auto 0px auto;
    color: #fff;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.main-content-card img {
    display: block;
  margin-left: auto;
  margin-right: auto;
    margin-top: 30px;
    transition: transform 0.3s ease;
}
.main-content-card:hover img {
    transform: scale(1.05);
}
.main-content-card h1 {
    text-align: center;
    font-size: 40px;
   font-family: 'CopperplateCC-Heavy', serif !important;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.main-content-card p {
    padding: 0px 39px 32px 54px;
    font-size: 20px;
    font-family: 'Garet', serif !important;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Construction page Styling */
.construction-first-page {
    background-color: #3f4b7a;
    min-height: 120vh;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.construction-materials-card {
    background-color: #3F4B7A;
    border-radius: 20px;
    width: 95%;
    color: white;
    margin: 0 auto;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    z-index: 1;
}

.construction-materials-card h1 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.construction-materials-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Material icon styling */
.materials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: -2;
}

.material-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 35px;
    transition: transform 0.3s ease;
}

.material-item:hover {
    transform: translateY(-5px);
}

.material-icon {
    background-color: #574b90;
    width: 120px;
    height: 120px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
   background: linear-gradient(90deg, rgba(61, 61, 133, 1) 0%, rgba(149, 148, 207, 1) 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    overflow: hidden;
    z-index: 0;
    transition: background-color 0.3s ease;
}

.material-item:hover .material-icon {
    background-color: #4a3d7a;
}

.material-icon img {
    width: 100px;
    height: 90px;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.material-label {
    font-family: 'Garet', serif !important;
    font-size: 14px;
    color: #3f4b7a;
    font-weight: bold;
}

.material-icon img p {
    font-family: 'Garet', serif !important;
    font-size: 14px;
    color: #3f4b7a;
    font-weight: bold;
}

@media (max-width: 1200px) {
   
    .materials-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    h2 {
        font-size: 2.2rem;
    }
}

/* Tablet */
@media (max-width: 900px) {
    
    .construction-materials-card {
        padding: 25px;
    }
    .construction-materials-card h1 {
        font-size: 24px;
    }
    .material-icon {
        width: 100px;
        height: 100px;
    }
    .material-icon img {
        width: 50px;
        height: 50px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    
    .materials-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: 100%;
    }
    
    .construction-materials-card {
        width: 100%;
        padding: 20px;
    }
    .construction-materials-card h1 {
        font-size: 20px;
    }
    .construction-materials-card p {
        font-size: 13px;
    }
    .material-icon {
        width: 70px;
        height: 70px;
    }
    .material-icon img {
        width: 40px;
        height: 40px;
    }
    .material-label {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    
    .main-content-card {
    padding: 0px 20px 0px 20px;
}
    
    .materials-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
   
    .construction-materials-card {
        padding: 15px;
    }
    .main-content-card img {
height: 60px;
width: 60px;
}
    .main-content-card h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .construction-materials-card p {
        font-size: 12px;
        line-height: 1.4;
    }
    .material-icon {
        width: 60px;
        height: 60px;
    }
    .material-icon img {
        width: 35px;
        height: 35px;
    }
    .material-label {
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    
    .materials-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
   
    .construction-materials-card {
        padding: 15px;
    }
    .main-content-card h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .main-content-card p {
   
    font-size: 10px;
  
}
    .construction-materials-card p {
        font-size: 12px;
        line-height: 1.4;
    }
    .material-icon {
        width: 60px;
        height: 60px;
    }
    .material-icon img {
        width: 35px;
        height: 35px;
    }
    .material-label {
        font-size: 11px;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
   
    .materials-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
   
    .material-icon {
        width: 80px;
        height: 80px;
    }
    .material-icon img {
        width: 45px;
        height: 45px;
    }
}