/* ============================================
   GL Dynamic Web Solutions - Portfolio Styles
   ============================================ */

:root {
    --primary-color: #2563eb;
    --secondary-color: #475569;
    --dark-grey: #1e293b;
    --light-grey: #f8fafc;
    --accent-blue: #3b82f6;
    --text-dark: #0f172a;
    --text-light: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #fafbfc;
    background-image: 
        linear-gradient(to bottom, rgba(250,251,252,0.85), rgba(250,251,252,0.75) 50%, rgba(250,251,252,0.85)),
        url('../images/backgrounds/hexagon-bg.jpg');
    background-size: auto, 400px;
    background-repeat: repeat;
    background-attachment: scroll, fixed;
    overflow-x: hidden;
}

/* ---- Navbar ---- */
.navbar {
    padding: 1rem 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-logo { height: 45px; width: auto; transition: all 0.3s ease; }
.navbar.scrolled .navbar-logo { height: 38px; }

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover { color: var(--primary-color) !important; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* ---- Hero ---- */
.portfolio-hero {
    background: url('../images/backgrounds/portfolio-bg.jpg') center center / cover no-repeat;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(51, 65, 85, 0.88) 100%);
    z-index: 1;
}

.portfolio-hero .container {
    position: relative;
    z-index: 2;
}



.hero-badge {
    display: inline-block;
    background: rgba(37,99,235,0.2);
    color: #93c5fd;
    border: 1px solid rgba(37,99,235,0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.portfolio-hero h1 span { color: var(--accent-blue); }

.portfolio-hero .lead {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
}

.stats-bar {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item { text-align: left; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

/* ---- Filter Tabs ---- */
.filter-section {
    padding: 3rem 0 1rem;
    text-align: center;
}

.filter-tabs {
    display: inline-flex;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    gap: 4px;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.filter-tab:hover:not(.active) {
    background: #f1f5f9;
    color: var(--text-dark);
}

/* ---- Portfolio Grid ---- */
.portfolio-section { padding: 2rem 0 80px; }

.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* ---- Device Mockup Container ---- */
.mockup-container {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 40px 30px 0;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
}

.mockup-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(59,130,246,0.05) 100%);
}

/* ---- Laptop Mockup ---- */
.laptop-mockup {
    position: relative;
    width: 280px;
    flex-shrink: 0;
}

.laptop-screen-wrapper {
    background: #1e293b;
    border-radius: 10px 10px 0 0;
    padding: 8px;
}

.laptop-camera {
    width: 6px; height: 6px;
    background: #475569;
    border-radius: 50%;
    margin: 0 auto 6px;
}

.laptop-screen {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #fff;
}

.laptop-screen img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.laptop-base {
    background: linear-gradient(to bottom, #334155, #1e293b);
    height: 16px;
    border-radius: 0 0 4px 4px;
    margin: 0 -10px;
}

.laptop-stand {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    height: 10px; width: 60px;
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
}

.laptop-foot {
    background: #334155;
    height: 3px; width: 100px;
    margin: 0 auto;
    border-radius: 2px;
}

/* ---- Mobile Mockup ---- */
.mobile-mockup {
    position: relative;
    width: 90px;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.mobile-frame {
    background: #1e293b;
    border-radius: 16px;
    padding: 8px 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.mobile-notch {
    width: 30px; height: 5px;
    background: #334155;
    border-radius: 3px;
    margin: 0 auto 5px;
}

.mobile-screen {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 9/19;
    background: #fff;
}

.mobile-screen img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.mobile-home-btn {
    width: 20px; height: 4px;
    background: #334155;
    border-radius: 3px;
    margin: 5px auto 0;
}

/* ---- Project Info ---- */
.project-info { padding: 1.8rem; }

.project-tag {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.2rem;
}

.tech-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}

.project-links { display: flex; gap: 10px; }

.btn-visit {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.btn-visit:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* ---- Featured Card ---- */
.project-card.featured .mockup-container {
    min-height: 380px;
    padding: 50px 40px 0;
}

.project-card.featured .laptop-mockup { width: 380px; }
.project-card.featured .mobile-mockup { width: 120px; }

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--dark-grey), var(--secondary-color));
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-cta {
    background: var(--primary-color);
    color: #fff;
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}

.btn-cta:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.5);
}

/* ---- Footer ---- */
footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
}

footer h5 { color: #fff; font-weight: 700; margin-bottom: 1.5rem; }
footer a { color: #cbd5e1; text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--accent-blue); }

/* ---- WhatsApp Button ---- */
.whatsapp-float {
    position: fixed !important;
    width: 60px !important;
    height: 60px !important;
    bottom: 30px !important;
    right: 30px !important;
    background-color: #25d366 !important;
    color: #fff !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 30px !important;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4) !important;
    z-index: 99999 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color: #128c7e !important;
    transform: scale(1.1) !important;
    color: #fff !important;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.7s ease-out forwards; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .portfolio-hero h1 { font-size: 2.2rem; }
    .stats-bar { gap: 1.5rem; }
    .stat-number { font-size: 1.8rem; }
    .laptop-mockup { width: 200px; }
    .mobile-mockup { width: 70px; }
    .project-card.featured .laptop-mockup { width: 220px; }
    .project-card.featured .mobile-mockup { width: 80px; }
    .filter-tabs { flex-wrap: wrap; justify-content: center; }
}

/* ---- Side-by-side Project Layout ---- */
.project-info-side {
    padding: 2.5rem;
}

.project-info-side h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-info-side p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.feature-list-small {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Mockup color variants */
.mockup-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.mockup-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
}

/* Responsive side layout */
@media (max-width: 991px) {
    .project-info-side {
        padding: 2rem;
    }

    .project-info-side h3 {
        font-size: 1.4rem;
    }
}

/* Bredmata green mockup background */
.mockup-green {
    background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
}
