/* ===== 1. CORE RESET & BODY ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", "Plus Jakarta Sans", sans-serif;
}

body {
    background: radial-gradient(circle at top, #0c1b2a, #020a13);
    color: #fff;
    overflow-x: hidden;
    /* Prevents side-scrolling from mobile menu */
}

/* ===== 2. NAVBAR BASE (The Sticky Header) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    /* Higher than everything else */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 80px;
    background: rgba(12, 27, 42, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s ease;
}

/* Scrolled State (Triggered by JS) */
.navbar.scrolled {
    background: rgba(12, 27, 42, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 15px 80px;
}



/* ===== 3. DESKTOP MENU & BUTTONS ===== */
.desktop-menu {
    display: flex;
    align-items: center;
}

.desktop-menu a {
    color: #cfd9e0;
    margin-left: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

.desktop-menu a:hover {
    color: #4cd964;
}

/* Admin Button Specific Styles */
.nav-admin-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700 !important;
}

.nav-admin-btn.dashboard {
    background: rgba(76, 217, 100, 0.1);
    color: #4cd964 !important;
}

.nav-admin-btn.project {
    color: #63b3ed !important;
}

/* Logout Button */
.logout-btn {
    background: none;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 6px 14px;
    border-radius: 6px;
    margin-left: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #ff4d4d;
    color: white;
}

/* Divider line between Public and Admin */
.divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 30px;
}



/* ===== HERO =====
 

/* ===== SERVICES ===== */
.services {
    padding: 100px 80px;
    text-align: center;
}

.section-title {
    font-size: 44px;
    margin-bottom: 10px;
}

.section-title span {
    color: #4cd964;
}

.section-subtitle {
    color: #cfd9e0;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 22px;
    padding: 40px 30px;
    transition: 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(76, 217, 100, 0.25);
}

/* ICON */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    animation: pulse 2.5s infinite;
}

.wp {
    background: rgba(0, 136, 204, 0.2);
    border: 1px solid #0088cc;
}

.lv {
    background: rgba(255, 45, 85, 0.2);
    border: 1px solid #ff2d55;
}

.dm {
    background: rgba(76, 217, 100, 0.2);
    border: 1px solid #4cd964;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: #cfd9e0;
    font-size: 15px;
    line-height: 1.6;
}

.service-btn {
    display: inline-block;
    margin-top: 25px;
    color: #4cd964;
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.service-btn::after {
    content: "";
    width: 0;
    height: 2px;
    background: #4cd964;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

.service-btn:hover::after {
    width: 100%;
}

/* ICON PULSE */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 rgba(76, 217, 100, 0.6);
    }

    50% {
        box-shadow: 0 0 25px rgba(76, 217, 100, 0.8);
    }

    100% {
        box-shadow: 0 0 0 rgba(76, 217, 100, 0.6);
    }
}

/* =========================================
   SERVICES SECTION (3D GLASSMORPHISM)
   ========================================= */
.services {
    padding: 100px 20px;
    background: #0b1120;
    /* Deep navy to match Hero */
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    /* Frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Hover Interaction: Lift and Glow */
.service-card:hover {
    transform: translateY(-15px);
    border-color: rgba(76, 217, 100, 0.4);
    /* Glows theme green */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(76, 217, 100, 0.1);
}

/* The 3D Icon Container */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Individual Icon Styles (Match your screenshot) */
.service-icon.wordpress {
    background: rgba(0, 136, 204, 0.2);
    border: 1px solid #0088cc;
    color: #0088cc;
}

.service-icon.laravel {
    background: rgba(255, 45, 85, 0.2);
    border: 1px solid #ff2d55;
    color: #ff2d55;
}

.service-icon.marketing {
    background: rgba(76, 217, 100, 0.2);
    border: 1px solid #4cd964;
    color: #4cd964;
}

/* Button Styling */
.service-btn {
    display: inline-block;
    margin-top: 20px;
    color: #4cd964;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.service-btn:hover {
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(76, 217, 100, 0.5);
}






/* =========================================
   PORTFOLIO GRID SYSTEM FIX
   ========================================= */
.portfolio {
    padding: 100px 8%;
    /* Adds horizontal spacing back */
    background: #0b1120;
}

.portfolio-grid {
    display: grid !important;
    /* Forces cards into columns */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* 3 per row on desktop */
    gap: 30px;
    margin-top: 50px;
    width: 100%;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    /* Remove padding here so image fits perfectly top */
    overflow: hidden;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Align text better */
}

/* Fix the glowing borders from your circle highlights */
.portfolio-card.wordpress {
    border-left: 5px solid #0088cc !important;
}

.portfolio-card.laravel {
    border-left: 5px solid #ff2d55 !important;
}

.portfolio-card.marketing {
    border-left: 5px solid #4cd964 !important;
}

.portfolio-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.card-content p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.portfolio {
    padding: 100px 8%;
    background: #0b1120;
    /* This centers all inline and text elements inside */
    text-align: center !important;
}

.section-title {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 10px;
    /* Ensures the element itself doesn't pull to a side */
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    /* 'margin: 0 auto' is the key to centering block-level p tags */
    margin: 0 auto 50px auto !important;
    max-width: 600px;
    display: block;
}


.portfolio-img-wrapper {
    position: relative;
    cursor: pointer;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 217, 100, 0.4);
    /* Your theme green */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.portfolio-img-wrapper:hover .img-overlay {
    opacity: 1;
}

.live-link {
    display: inline-block;
    margin-top: 15px;
    color: #4cd964;
    /* Theme Green */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}

.live-link:hover {
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(76, 217, 100, 0.5);
}

/* Category Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid #3cff86;
    color: #3cff86;
    padding: 8px 20px;
    border-radius: 30px;
    margin: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #3cff86;
    color: #070d1a;
    box-shadow: 0 0 15px rgba(60, 255, 134, 0.5);
}

/* Optional: Add a smooth fade-in effect for filtered items */
.portfolio-item {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* Tech Badges */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tech-badges .badge {
    font-size: 0.7rem;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* View All Button */
.btn-neon-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #00ff88;
    color: #00ff88;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.4s;
    margin-top: 30px;
}

.btn-neon-outline:hover {
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 30px #00ff88;
}

/* Modal Styling (For Case Study) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #111;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #00ff88;
    position: relative;
    overflow-y: auto;
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    /* Adjust based on your preference */
    object-fit: cover;
    /* This prevents stretching */
    border-radius: 10px 10px 0 0;
}

.portfolio-card {
    transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s allow-discrete;
}

/* Styling for the Details Button */
.details-btn {
    background: rgba(74, 222, 128, 0.1); /* Light green tint */
    color: #4ade80; /* Your neon green color */
    border: 1px solid rgba(74, 222, 128, 0.4);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover State: Glowing Effect */
.details-btn:hover {
    background: #4ade80; /* Solid neon green */
    color: #0f172a; /* Dark background text for contrast */
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
    transform: translateY(-2px);
    border-color: #4ade80;
}

/* Active State: Slight Click Effect */
.details-btn:active {
    transform: translateY(0);
}

/* Ensure the card-footer handles spacing */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

/* Adjust the Live Preview link to match if needed */
.live-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.live-link:hover {
    color: #fff;
}

/* Styling for the View Case Study Button (Overlay) */
.view-case-study {
    background: #4ade80; /* Solid neon green */
    color: #0f172a; /* Dark text for high contrast */
    border: none;
    padding: 12px 24px;
    border-radius: 30px; /* Fully rounded pill shape */
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Hover Effect for Case Study Button */
.view-case-study:hover {
    background: #fff; /* Turns white on hover */
    color: #4ade80; /* Text turns green */
    transform: scale(1.1); /* Slightly grows */
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.8);
}

/* Ensure the Overlay Container is centered */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Dark semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

/* Show Overlay on Hover */
.portfolio-img-wrapper:hover .img-overlay {
    opacity: 1;
}

/* Specific logic for the Image Wrapper */
.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.portfolio-img-wrapper:hover img {
    transform: scale(1.1); /* Zoom effect on image when hovering */
}







/* ===== 4. FOOTER ===== */
.footer {
    background: radial-gradient(circle at top, #0c1b2a, #020a13);
    padding: 80px 80px 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #4cd964;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: #4cd964;
}

.footer-col p {
    color: #cfd9e0;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #cfd9e0;
}

.footer-col ul li a {
    color: #cfd9e0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #4cd964;
    padding-left: 6px;
}

/* FOOTER BOTTOM */
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8fa3b8;
    font-size: 14px;
}



/* RESPONSIVE */
@media (max-width: 768px) {
    .footer {
        padding: 60px 30px 25px;
    }
}






/* ==== Contact Success Message ==== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}




/* ===== SCROLL TO TOP BUTTON ===== */

.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #4cd964;
    color: #000;
    border: none;
    border-radius: 50%;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 4000;
    /* Higher than navbar and mobile menu */
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-btn:hover {
    transform: translateY(-5px);
    background: #2ecc71;
}



/*======back button for section only====*/


.back-to-home-wrapper {
    position: fixed;
    top: 100px;
    /* Adjust based on your navbar height */
    left: 30px;
    z-index: 9999;
}

.btn-back-home {
    background: #3cff86;
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(60, 255, 134, 0.3);
    transition: 0.3s;
}

.btn-back-home:hover {
    transform: translateX(-5px);
    background: #2ee675;
    box-shadow: 0 15px 30px rgba(60, 255, 134, 0.5);
}

@media (max-width: 768px) {
    .back-to-home-wrapper {
        top: auto;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
    }
}



/* The Animation Definition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-back-home {
    /* Existing styles... */
    background: #3cff86;
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;

    /* Add this line for the entry animation */
    animation: fadeInUp 0.6s ease-out forwards;

    /* Ensure it doesn't conflict with the hover transition */
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

/* Updated Hover for better interaction */
.btn-back-home:hover {
    background: #2ee675;
    transform: scale(1.05);
    /* Slight grow effect */
    box-shadow: 0 0 20px rgba(60, 255, 134, 0.6);
}


/* 1. Modal Overlay (The Background) */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    /* Dark slate with high opacity */
    backdrop-filter: blur(8px);
    /* Modern blur effect */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 2. Modal Content Box */
.modal-content {
    background: #1e293b;
    /* Match your admin card colors */
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    position: relative;
    padding: 40px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    /* Soft neon green border */
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.15);
    /* Neon glow */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4ade80 #1e293b;
}

/* 3. Close Button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #4ade80;
    transform: rotate(90deg);
}

/* 4. Modal Inner Styling */
.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.modal-body h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #4ade80 !important;
    margin-top: 25px;
}

/* 5. Custom Scrollbar for Modal (Chrome/Safari) */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #0f172a;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #4ade80;
    border-radius: 10px;
}

/* 6. Animation for Opening */
.animate-pop {
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ====ADmin Dashboard form==== */


/* ADMIN FORM STYLING */
form {
    background: #111827; /* Dark background matching your dashboard */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input[type="text"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

form input[type="text"]:focus {
    border-color: #3cff86; /* Neon green focus */
}

form label {
    color: #94a3b8; /* Muted text */
    font-size: 13px;
    margin-bottom: -10px;
}

form input[type="file"] {
    color: #94a3b8;
    font-size: 13px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
}

form button {
    background: #3cff86; /* Neon green button */
    color: #000;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

form button:hover {
    background: #2ee074;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 255, 134, 0.3);
}