/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; font-family: 'Montserrat', sans-serif; }

/* Navbar */
header { position: fixed; width: 100%; top: 0; background: rgba(17, 17, 17, 0.95); color: #fff; z-index: 1000; backdrop-filter: blur(5px);}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem;}
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 2rem; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 600; transition: 0.3s;}
.nav-links a:hover { color: #f39c12; }
.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px;}
.burger div { width: 25px; height: 3px; background: #fff;}

/* Hero Section */
.hero { height: 100vh; background: linear-gradient(135deg, #f39c12, #e74c3c); color: #fff; display: flex; justify-content: center; align-items: center; text-align: center;}
.hero-content h1 { font-size: 3rem; margin-bottom: 0.5rem; animation: fadeUp 1s ease-out;}
.hero-content p { font-size: 1.5rem; margin-bottom: 1rem; animation: fadeUp 1.3s ease-out;}
.hero-content .btn { padding: 10px 25px; background: #fff; color: #e74c3c; text-decoration: none; font-weight: 700; border-radius: 5px; transition: 0.3s; animation: fadeUp 1.6s ease-out;}
.hero-content .btn:hover { background: #f39c12; color: #fff;}

/* Sections */
.section { padding: 100px 20px; max-width: 100#; margin: auto; opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out;}
.section h2 { font-size: 3rem; margin-bottom: 1rem; text-align: center; }
.section h2::after {
  content: " ";
  border-bottom: 5px solid #0093c6;
  display: block;
  width: 200px;
  margin: 1.5rem auto;
}
.section p { font-size: 1.75rem; margin: 2rem 0rem 1rem; animation: fadeUp 1.3s ease-out;}
.about-content {max-width: 1500px;margin: auto}
.portfolio-content {max-width: 2000px;margin: auto}
.contact-content {max-width: 1500px;margin: auto}

/* Portfolio Grid */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.portfolio-item { position: relative; overflow: hidden; border-radius: 12px; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(231, 76, 60, 0.8); color: #fff; font-weight: bold; text-align: center; padding: 10px 0; transform: translateY(100%); transition: transform 0.3s ease;}
.portfolio-item:hover .overlay { transform: translateY(0); }

/*Portfolio Item Overlay */
/* =========================
   Portfolio Item Overlay
========================= */

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

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


/* Lightbox full-screen */
.lightbox {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

/* Slider container */
.lightbox-slider {
    display: flex;
    transition: transform 0.5s ease;
    max-width: 90%;
    max-height: 80%;
}

/* Individual slide */
.lightbox-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Images inside lightbox */
.lightbox-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    animation: zoom 0.6s;
}

/* Caption */
#lightbox-caption {
    margin-top: 15px;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/* Navigation arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    padding: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    transition: background 0.3s;
}
.lightbox-arrow:hover {
    background: rgba(0,0,0,0.75);
}
.lightbox-next { right: 20px; }
.lightbox-prev { left: 20px; }

/* Close button */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.lightbox-close:hover {
    color: #bbb;
}

/* Zoom animation */
@keyframes zoom {
    from {transform: scale(0.5);}
    to {transform: scale(1);}
}
/* Contact Form */
form { display: flex; flex-direction: column; gap: 15px; max-width: 500px; margin: auto; }
input, textarea { padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }
button { padding: 12px; border: none; background: #e74c3c; color: #fff; cursor: pointer; font-size: 1rem; font-weight: 700; border-radius: 5px; transition: background 0.3s;}
button:hover { background: #f39c12; }

/* Animated messages */
.form-message { margin-top: 15px; padding: 10px 15px; border-radius: 5px; opacity: 0; transform: translateY(20px); transition: all 0.5s ease-out; font-weight: bold; max-width: 500px;}
.form-message.active { opacity: 1; transform: translateY(0);}
.form-message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Footer */
footer { text-align: center; padding: 20px; background: #111; color: #fff; }

/* Animations */
.fade-in.active { opacity: 1; transform: translateY(0); }

/* Portfolio Slider */
/* Custom circular arrows */
.custom-arrow {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.8s ease-out;
    z-index: 10;
    cursor: pointer;
}

/* Arrow icon inside span */
.custom-arrow span {
    font-size: 22px;
    font-weight: bold;
}

/* Hover reveal */
.portfolio-slider:hover .custom-arrow {
    opacity: 1;
}

/* Hover scaling */
.custom-arrow:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.08);
}

/* Positioning */
.custom-next {
    right: 20px;
}

.custom-prev {
    left: 20px;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .custom-arrow {
        display: none;
    }
}

/* Wrapper spacing */
.portfolio-slider-wrapper {
    position: relative;
    max-width: 1500px;
    margin: auto;
}

/* Pagination styling */
.portfolio-pagination {
    text-align: center;
    margin-top: 20px; /* space below slider */
}

.portfolio-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
    margin: 0 6px !important;
    border-radius: 50%;
    transition: background 0.3s;
}

.portfolio-pagination .swiper-pagination-bullet-active {
    background: #000;
}
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(20px);} 100% { opacity: 1; transform: translateY(0);} }

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; flex-direction: column; background: #111; width: 50%; justify-content: center; align-items: center; transition: 0.3s;}
    .nav-links.active { right: 0; }
    .burger { display: flex; }
}