/* =========================================
   1. GLOBAL RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Enables smooth jump when clicking menu links */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212; /* Dark Professional Background */
    color: #e0e0e0;
    line-height: 1.6;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    background-color: rgba(18, 18, 18, 0.95); /* Blur effect */
    z-index: 100;
    border-bottom: 1px solid #333;
}

.logo {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.3rem;
    color: #fff;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
}

/* Menu Links */
.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 600;
    margin-right: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

/* Hire Me Button */
.contact-btn {
    text-decoration: none;
    color: #fff;
    background-color: #e60023; /* Waranark Red */
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
}

.contact-btn:hover {
    background-color: #ad081b;
    transform: translateY(-2px);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-intro {
    text-align: center;
    padding: 80px 20px 50px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-intro h1 {
    font-size: 3.5rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 700;
}

.highlight {
    color: #e60023; /* Accent Color */
}

.hero-intro p {
    color: #888;
    font-size: 1.2rem;
}

.hero-intro .location {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   4. SECTIONS & TITLES
   ========================================= */
.portfolio-section {
    padding: 40px 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

/* The Line Divider */
.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0));
    margin: 20px 0;
}

/* =========================================
   5. MASONRY GRID (Pinterest Style)
   ========================================= */
.masonry-wrapper {
    column-count: 4; 
    column-gap: 20px;
}

.masonry-item {
    margin-bottom: 20px;
    break-inside: avoid; /* Prevents image cutting */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    background-color: #1a1a1a;
}

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

/* Hover Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
}

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

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

/* =========================================
   6. "VIEW ALL" BUTTONS
   ========================================= */
.btn-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid #444;
    color: #bbb;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    border-color: #fff;
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 60px 20px;
    color: #444;
    font-size: 0.8rem;
    border-top: 1px solid #222;
    margin-top: 40px;
}

/* =========================================
   8. LIGHTBOX (Modal)
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoom 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

@keyframes zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =========================================
   9. RESPONSIVE / MOBILE
   ========================================= */
@media (max-width: 1100px) {
    .masonry-wrapper { column-count: 3; }
}

@media (max-width: 800px) {
    .masonry-wrapper { column-count: 2; }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link { margin: 0 10px; font-size: 0.8rem; }
    
    .hero-intro h1 { font-size: 2.2rem; }
}

@media (max-width: 500px) {
    .masonry-wrapper { column-count: 1; }
    
    .contact-btn {
        margin-top: 10px;
    }
}