/* 
    PORTFOLIO PAGE STYLES
    - Primary CTA color: #2563eb (blue)
    - Secondary accent: #10b981 (green)
    - Background: #f8fafc (light gray)
*/

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* New Modern Header Design */
.new-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
}

.header-left .logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.header-center .main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.header-center .main-nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.header-center .main-nav a:hover,
.header-center .main-nav a.active {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.contact-bar {
    margin-right: 1.5rem;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    white-space: nowrap;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.6);
}

.phone-icon {
    font-size: 1.4rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: #334155;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* Mobile Menu - Hidden by default */
.mobile-menu {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0.5rem;
}

.mobile-nav a {
    display: block;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: #2563eb;
    color: white;
}

.mobile-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.mobile-contact-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    justify-content: center;
}

.mobile-contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.6);
}

/* Hero Section with Same Design as Home Page */
.modern-hero {
    height: 80vh;
    min-height: 600px;
    background-image: url('https://media.istockphoto.com/id/1345384816/id/foto/industri-konstruksi-dan-teknik-dalam-periode-pasca-resesi.jpg?s=612x612&w=0&k=20&c=4kDfAEL0eqnUjMhLiuT3BzJN4doXyx5dXWW8qM2zxQE=');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Space for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    color: white;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: #f1f5f9;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.phone-button {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 1.3rem 2.7rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
    border: 2px solid #10b981;
    white-space: nowrap;
}

.phone-button:hover {
    background: transparent;
    color: #10b981;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.7);
}

.estimate-button {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 1.3rem 2.7rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border: 2px solid white;
    white-space: nowrap;
}

.estimate-button:hover {
    background: white;
    color: #1e293b;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

/* Portfolio Gallery - Project Showcase */
.portfolio-gallery {
    padding: 5rem 0;
    background: white;
}

.portfolio-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.portfolio-intro h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.portfolio-intro p {
    font-size: 1.3rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3.5rem;
    margin-bottom: 4rem;
}

/* Project Card with Before/After Comparison */
.project-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e2e8f0;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: #2563eb;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #10b981);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-images {
    padding: 2rem;
    background: #f8fafc;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.before-image,
.after-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.before-image img,
.after-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .before-image img,
.project-card:hover .after-image img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.before-image .image-label {
    background: rgba(239, 68, 68, 0.8);
}

.after-image .image-label {
    background: rgba(16, 185, 129, 0.8);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #1e293b;
    font-weight: 700;
}

.project-info p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.duration {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial {
    font-style: italic;
    color: #10b981;
    font-weight: 600;
    line-height: 1.6;
    font-size: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 0.75rem;
    border-left: 4px solid #10b981;
}

.cta-section {
    text-align: center;
    margin-top: 2rem;
}

.services-button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 1.4rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    white-space: nowrap;
    border: 2px solid #2563eb;
}

.services-button:hover {
    background: transparent;
    color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

/* Our Images and Work Section */
.images-section {
    padding: 5rem 0;
    background: #f1f5f9;
}

.images-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 3/4;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 10;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

/* Modern Footer */
.modern-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 5rem 0 1.8rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-column h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-column h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

.footer-column p {
    margin-bottom: 0.8rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-size: 1.1rem;
}

.footer-column a:hover {
    color: #2563eb;
    transform: translateX(7px);
}

.contact-details a {
    color: #94a3b8;
    font-weight: 500;
}

.contact-details a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1.3rem;
    margin-top: 1.3rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #334155;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 1.1rem;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #2563eb;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 900px) {
    .header-center {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .image-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .before-image img,
    .after-image img {
        height: 200px;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .header-left .logo h1 {
        font-size: 1.8rem;
    }
    
    .contact-bar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn span {
        width: 24px;
        height: 2.5px;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .modern-hero {
        height: 75vh;
        min-height: 500px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        gap: 1.2rem;
    }
    
    .phone-button,
    .estimate-button {
        padding: 1.1rem 2.2rem;
        font-size: 1.05rem;
    }
    
    .portfolio-gallery {
        padding: 4rem 0;
    }
    
    .portfolio-intro h2 {
        font-size: 2.4rem;
    }
    
    .portfolio-intro p {
        font-size: 1.2rem;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .project-images {
        padding: 1.5rem;
    }
    
    .before-image img,
    .after-image img {
        height: 180px;
    }
    
    .project-info {
        padding: 1.7rem;
    }
    
    .project-info h3 {
        font-size: 1.4rem;
    }
    
    .services-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .images-section h2 {
        font-size: 2.4rem;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.8rem;
    }
    
    .header-left .logo h1 {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .phone-button,
    .estimate-button {
        padding: 1rem 2rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        font-size: 1rem;
    }
    
    .portfolio-intro h2 {
        font-size: 2.1rem;
    }
    
    .portfolio-intro p {
        font-size: 1.1rem;
    }
    
    .before-image img,
    .after-image img {
        height: 160px;
    }
    
    .image-label {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .project-info h3 {
        font-size: 1.3rem;
    }
    
    .project-info p {
        font-size: 1rem;
    }
    
    .services-button {
        padding: 1.1rem 2.2rem;
        font-size: 1rem;
    }
    
    .images-section h2 {
        font-size: 2.1rem;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.6rem;
    }
}

.masonry-item:nth-child(1) img {
    object-position: top;
}

.masonry-item:nth-child(1) img {
    object-position: top;
}

.before-image:nth-child(1) img {
    object-position: bottom;
}