/* =========================================================
   HOME.CSS
   Loaded only on index.html. Requires base.css to be loaded first
   (uses shared variables + .container/.section-title/.btn classes).
========================================================= */

/* ---------- Hero ---------- */
.hero {
    height: 900px;
    background-color: var(--primary-dark);
    background-image: linear-gradient(rgba(26, 58, 74, 0.8), rgba(26, 58, 74, 0.8)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
}

.hero-content {
    max-width: 1200px;
}

.hero h1 {
    font-size: 72px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero p {
    font-size: 28px;
    margin-bottom: 60px;
    color: var(--bg-light);
    max-width: 900px;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pillar i {
    font-size: 48px;
    color: var(--accent);
}

.pillar-text h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.pillar-text p {
    font-size: 16px;
    margin: 0;
    color: #d0d0d0;
}

.hero-cards {
    display: flex;
    gap: 30px;
}

.hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    width: 350px;
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

.hero-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent);
}

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background-color: var(--text-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 4px solid var(--text-light);
}

.timeline-year {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-text {
    font-size: 18px;
    color: #555;
}

.about-content h3 {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.vision-mission {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.vm-box {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    border-left: 6px solid var(--primary);
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vm-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.vm-box h4 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* ---------- Products ---------- */
.products {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

.product-sidebar ul {
    list-style: none;
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.product-sidebar li {
    border-bottom: 1px solid var(--border-color);
}

.product-sidebar li:last-child {
    border-bottom: none;
}

.product-sidebar a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-sidebar a.active, .product-sidebar a:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    height: 250px;
    background-color: #ddd;
    background-image: url('https://images.unsplash.com/photo-1581092334651-ddf26d9a09d0?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.product-info p {
    color: #666;
    margin-bottom: 25px;
}

/* ---------- Resources ---------- */
.resources {
    padding: 120px 0;
    background-color: var(--text-light);
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.resource-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(45, 107, 122, 0.1);
}

.resource-icon {
    font-size: 40px;
    color: #e74c3c;
    margin-right: 20px;
}

.resource-details h4 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.resource-details p {
    font-size: 14px;
    color: #888;
}

.download-btn {
    margin-left: auto;
    color: var(--primary);
    font-size: 24px;
    transition: color 0.3s ease;
}

.download-btn:hover {
    color: var(--primary-dark);
}

/* ---------- Projects ---------- */
.projects {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 58, 74, 0.9));
    padding: 40px 30px 30px;
    color: var(--text-light);
}

.project-overlay h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background-color: var(--text-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 60px;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.contact-item i {
    font-size: 32px;
    color: var(--accent);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--accent);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* =========================================================
   RESPONSIVE — hero, about, products, resources, projects, contact
   Same breakpoints as the original file, same source order.
========================================================= */

@media screen and (max-width: 1919px) {
    .hero h1 {
        font-size: 64px;
    }

    .hero p {
        font-size: 26px;
    }

    .hero {
        height: 850px;
    }
}

@media screen and (max-width: 1599px) {
    .hero {
        height: 820px;
    }

    .hero h1 {
        font-size: 58px;
        line-height: 1.15;
    }

    .hero p {
        font-size: 24px;
        max-width: 800px;
    }

    .pillars {
        gap: 30px;
    }

    .hero-card {
        width: 320px;
    }

    .about-grid {
        gap: 60px;
    }

    .products-layout {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }

    .product-grid {
        gap: 30px;
    }
}

@media screen and (max-width: 1399px) {
    .hero {
        height: 760px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero p {
        font-size: 22px;
        margin-bottom: 50px;
    }

    .pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-bottom: 50px;
    }

    .pillar i {
        font-size: 40px;
    }

    .pillar-text h3 {
        font-size: 20px;
    }

    .hero-cards {
        gap: 20px;
    }

    .hero-card {
        width: 300px;
        padding: 25px;
    }

    .hero-card h3 {
        font-size: 22px;
    }

    .about,
    .products,
    .resources,
    .projects,
    .contact {
        padding: 100px 0;
    }

    .about-grid {
        gap: 50px;
    }

    .vision-mission {
        gap: 25px;
    }

    .vm-box {
        padding: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .resource-list {
        gap: 25px;
    }

    .masonry-grid {
        gap: 20px;
    }

    .project-item {
        height: 350px;
    }

    .contact-layout {
        gap: 50px;
    }

    .contact-info {
        padding: 45px;
    }
}

@media screen and (max-width: 1199px) {
    .hero {
        height: auto;
        min-height: 720px;
        padding: 120px 0 80px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 46px;
        margin-bottom: 25px;
    }

    .hero p {
        font-size: 20px;
        margin-bottom: 45px;
    }

    .pillars {
        gap: 20px;
    }

    .pillar {
        gap: 15px;
    }

    .pillar i {
        font-size: 34px;
    }

    .pillar-text h3 {
        font-size: 18px;
    }

    .pillar-text p {
        font-size: 14px;
    }

    .hero-cards {
        gap: 20px;
    }

    .hero-card {
        width: 100%;
        padding: 24px;
    }

    .hero-card h3 {
        font-size: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .vision-mission {
        gap: 20px;
    }

    .products-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .product-grid {
        gap: 20px;
    }

    .product-info {
        padding: 24px;
    }

    .product-info h3 {
        font-size: 22px;
    }

    .resource-list {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 90px 0 70px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 18px;
        max-width: 100%;
    }

    .pillars {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pillar {
        justify-content: center;
        text-align: left;
    }

    .hero-cards {
        flex-direction: column;
        align-items: center;
    }

    .hero-card {
        width: 100%;
        max-width: 500px;
    }

    .about,
    .products,
    .resources,
    .projects,
    .contact {
        padding: 80px 0;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -38px;
    }

    .vision-mission {
        flex-direction: column;
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .product-sidebar ul {
        display: flex;
        flex-wrap: wrap;
    }

    .product-sidebar li {
        flex: 1;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }

    .product-sidebar li:last-child {
        border-right: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .project-item {
        height: 400px;
    }
}

@media screen and (max-width: 767px) {
    .hero {
        padding: 70px 0 60px;
    }

    .hero h1 {
        font-size: 34px;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 17px;
        margin-bottom: 35px;
    }

    .pillar {
        flex-direction: column;
        text-align: center;
    }

    .pillar i {
        margin-bottom: 10px;
    }

    .hero-card {
        padding: 22px;
    }

    .hero-card h3 {
        font-size: 20px;
    }

    .about,
    .products,
    .resources,
    .projects,
    .contact {
        padding: 70px 0;
    }

    .timeline-year {
        font-size: 22px;
    }

    .timeline-text {
        font-size: 16px;
    }

    .about-content h3 {
        font-size: 28px;
    }

    .about-content p {
        font-size: 16px;
    }

    .vm-box {
        padding: 24px;
    }

    .vm-box h4 {
        font-size: 22px;
    }

    .product-img {
        height: 220px;
    }

    .product-info h3 {
        font-size: 22px;
    }

    .resource-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .download-btn {
        margin-left: 0;
    }

    .project-item {
        height: 320px;
    }

    .project-overlay {
        padding: 30px 20px 20px;
    }

    .project-overlay h4 {
        font-size: 22px;
    }

    .contact-info {
        padding: 35px 25px;
    }

    .contact-item {
        margin-bottom: 30px;
    }

    .contact-item i {
        font-size: 26px;
    }
}

@media screen and (max-width: 575px) {
    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.6;
    }

    .pillar i {
        font-size: 32px;
    }

    .pillar-text h3 {
        font-size: 18px;
    }

    .hero-card {
        padding: 20px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        width: 3px;
    }

    .timeline-item::before {
        width: 16px;
        height: 16px;
        left: -32px;
    }

    .timeline-year {
        font-size: 20px;
    }

    .about-content h3 {
        font-size: 24px;
    }

    .vm-box {
        padding: 20px;
    }

    .vm-box h4 {
        font-size: 20px;
    }

    .product-info {
        padding: 20px;
    }

    .product-info h3 {
        font-size: 20px;
    }

    .product-info p {
        font-size: 15px;
    }

    .resource-item {
        padding: 20px;
    }

    .resource-details h4 {
        font-size: 18px;
    }

    .project-item {
        height: 280px;
    }

    .project-overlay h4 {
        font-size: 20px;
    }

    .contact-info {
        padding: 28px 20px;
    }

    .contact-item {
        flex-direction: column;
    }

    .contact-item i {
        margin-bottom: 10px;
    }
}
