/* index.html Specific Styles */

/* Hero Slider */
.hero {
    position: relative;
    height: 550px; /* Fixed height for stability */
    max-height: 80vh; /* Responsive fallback */
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h2 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.slider-controls {
    display: none;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-controls .prev { left: 30px; }
.slider-controls .next { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: var(--white);
}

/* Portfolio Grid (Home/Preview) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 8px;
    cursor: pointer;
}

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

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

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Process Section (Home) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

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

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Estimate CTA */
.estimate-cta {
    text-align: center;
}

.estimate-cta .section-title {
    margin-bottom: 20px;
}

.estimate-cta .section-subtitle {
    margin-bottom: 40px;
}

/* About Content (Home) */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content .section-title {
    margin-bottom: 30px;
}

.about-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Responsive (Home) */
@media (max-width: 992px) {
    .hero-content h2 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
    .hero-content h2 { font-size: 2.2rem; }
}

/* About Page Specific Styles */
.about-page-content {
    max-width: 900px;
    margin: 50px auto 0;
}
.intro-text {
    text-align: center;
    margin-bottom: 80px;
}
.intro-text .lead {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}
.vision-card {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}
.vision-card h4 {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.vision-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.company-history {
    background: #fff;
    padding: 80px 60px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.history-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}
.history-item:last-child {
    margin-bottom: 0;
}
.history-year {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 70px;
    text-align: left;
}
.history-text {
    flex-grow: 1;
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.5;
}
@media (max-width: 768px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }
    .company-history {
        padding: 50px 30px;
    }
    .history-item {
        gap: 20px;
        margin-bottom: 30px;
    }
    .history-year {
        width: 60px;
        font-size: 1.1rem;
    }
}

/* Portfolio Page Specific Styles */
.portfolio-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
    gap: 40px;
    margin-top: 50px;
    min-height: 800px;
}
@media (max-width: 768px) {
    .portfolio-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .card-img {
        height: 250px;
    }
    .card-info {
        padding: 15px;
    }
    .card-info h3 {
        font-size: 1.3rem;
    }
}
.portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.portfolio-card:hover {
    transform: translateY(-10px);
}
.card-img {
    height: 300px;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-info {
    padding: 25px;
    flex-grow: 1;
}
.card-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.card-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--accent-color);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 15px;
    margin-right: 5px;
}
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
.pagination {
    display: flex;
    gap: 10px;
}
.page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #eee;
    background: #fff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 400;
}
.page-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--bg-light);
}
.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 500;
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Process Page Specific Styles */
.process-detail {
    max-width: 900px;
    margin: 50px auto 0;
}
.process-item {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: flex-start;
}
.process-item:nth-child(even) {
    flex-direction: row-reverse;
}
.process-num {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--accent-color);
    line-height: 1;
    opacity: 0.5;
    flex-shrink: 0;
    width: 80px;
}
.process-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.process-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}
.process-text ul {
    margin-top: 15px;
    padding-left: 20px;
}
.process-text ul li {
    list-style: disc;
    margin-bottom: 8px;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .process-item, .process-item:nth-child(even) {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 60px;
    }
    .process-num {
        font-size: 2.8rem;
        width: auto;
    }
    .process-text h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    .process-text p {
        font-size: 0.95rem;
    }
    .process-text ul li {
        font-size: 0.9rem;
    }
}

/* Estimate Page Specific Styles */
.estimate-container {
    max-width: 800px;
    margin: 50px auto 0;
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.form-group {
    flex: 1;
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(191, 166, 122, 0.1);
}
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.checkbox-item input {
    width: auto;
}
.privacy-info {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    height: 100px;
    overflow-y: scroll;
}
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .estimate-container {
        padding: 30px 20px;
    }
}
